aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / scripts / check_local_tools.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Compile the pinned native Omega units and compare with signed embedded code. |
| 3 | set -euo pipefail |
| 4 | cd "$(dirname "$0")/.." |
| 5 | om=${OMEGA_SOURCE:?set OMEGA_SOURCE to the clean pinned Omega checkout} |
| 6 | [[ $(git -C "$om" rev-parse HEAD) = bf54b19fa590e8ae925c0e80815516dbf41e7326 ]] |
| 7 | [[ $(sha256sum "$om/seed/out/omc" | cut -d' ' -f1) = 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b ]] |
| 8 | [[ $(sha256sum "$om/seed/omc/omc.om" | cut -d' ' -f1) = 96d51b63c8f451661ac715395078e04f39195e50c9e8fe37746cda121e4d7a1e ]] |
| 9 | out=${LOCAL_TOOLS_OUT:-$PWD/target/local-tools-host} |
| 10 | mkdir -p "$out" |
| 11 | for name in arithmetic text system; do |
| 12 | "$om/seed/out/omc" < "native/kernel/x86/tools/$name.om" > "$out/$name.raw" |
| 13 | done |
| 14 | cc -std=c11 -O2 -Wall -Wextra -Werror -Inative/sig -Inative/argus \ |
| 15 | native/kernel/x86/tests/local_admission_test.c native/kernel/artifact/format.c \ |
| 16 | native/argus/sha256.c native/sig/ed25519.c native/sig/sha512.c native/sig/ct.c -o "$out/admission" |
| 17 | "$out/admission" "$out/arithmetic.raw" "$out/text.raw" "$out/system.raw" |
| 18 | cargo test -p allen-courier --bin allen-courier |