rtl8127-omega
aien-dev/rtl8127-omega
Brought by drakestapleton
rtl8127-omega / tools / build.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Build dist/rtl8127-probe-linux-aarch64 from the Omega sources with the pinned compiler. Usage: tools/build.sh [OMC] |
| 4 | set -eu |
| 5 | root=$(cd "$(dirname "$0")/.." && pwd) |
| 6 | omc=${1:-$("$root/tools/omc.sh")} |
| 7 | mkdir -p "$root/dist" "$root/build" |
| 8 | cat "$root/om/rtl8127/rtl8127.om" "$root/om/rtl8127/hw.om" "$root/cmd/rtl8127d/probe.om" | "$omc" > "$root/dist/rtl8127-probe-linux-aarch64" |
| 9 | chmod 755 "$root/dist/rtl8127-probe-linux-aarch64" |
| 10 | sha256sum "$root/dist/rtl8127-probe-linux-aarch64" |