Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tools/build-gpu-adapter.sh # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tools / build-gpu-adapter.sh` 18 lines ยท 996 bytes Raw Blame History 1 #!/bin/sh 2 # Build the native Omega GPU adapter with the pinned seed compiler. 3 # Source-only: no C compiler, assembler or linker participates. 4 set -eu 5 cd "$(dirname "$0")/.." 6 seed=${OMEGA_SEED:-build/omc} 7 want=`191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9` 8 [ -x "$seed" ] || { echo "seed compiler missing: $seed (set OMEGA_SEED)" >&2; exit 1; } 9 [ "$(sha256sum "$seed" | cut -d' ' -f1)" = "$want" ] || { echo 'seed fingerprint mismatch' >&2; exit 1; } 10 file "$seed" | grep -q 'ELF 64-bit.*ARM aarch64' || { echo 'seed is not AArch64' >&2; exit 1; } 11 mkdir -p build 12 "$seed" < src/gpu_adapter.om > build/gpu-adapter.tmp 13 [ -s build/gpu-adapter.tmp ] || { echo 'empty compiler output' >&2; exit 1; } 14 file build/gpu-adapter.tmp | grep -q 'ELF 64-bit.*ARM aarch64' || { echo 'not an AArch64 ELF' >&2; exit 1; } 15 chmod +x build/gpu-adapter.tmp 16 mv build/gpu-adapter.tmp build/gpu-adapter 17 sha256sum src/gpu_adapter.om build/gpu-adapter > build/gpu-adapter.sha256 18 cat build/gpu-adapter.sha256