interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / scripts / check_local_tools.sh

18 lines · 1107 bytes Raw Blame History
1#!/usr/bin/env bash
2# Compile the pinned native Omega units and compare with signed embedded code.
3set -euo pipefail
4cd "$(dirname "$0")/.."
5om=${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 ]]
9out=${LOCAL_TOOLS_OUT:-$PWD/target/local-tools-host}
10mkdir -p "$out"
11for name in arithmetic text system; do
12 "$om/seed/out/omc" < "native/kernel/x86/tools/$name.om" > "$out/$name.raw"
13done
14cc -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"
18cargo test -p allen-courier --bin allen-courier