interplane.Get Omega
Read in your language

rtl8127-omega

aien-dev/rtl8127-omega

Brought by drakestapleton

branch main Branches Tags History

rtl8127-omega / tools / build.sh

10 lines · 526 bytes Raw Blame History
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]
4set -eu
5root=$(cd "$(dirname "$0")/.." && pwd)
6omc=${1:-$("$root/tools/omc.sh")}
7mkdir -p "$root/dist" "$root/build"
8cat "$root/om/rtl8127/rtl8127.om" "$root/om/rtl8127/hw.om" "$root/cmd/rtl8127d/probe.om" | "$omc" > "$root/dist/rtl8127-probe-linux-aarch64"
9chmod 755 "$root/dist/rtl8127-probe-linux-aarch64"
10sha256sum "$root/dist/rtl8127-probe-linux-aarch64"