interplane-mv
INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.
Brought by drakestapleton
interplane-mv / tests / hardware / build.sh
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | cd "$(dirname "$0")/../.." |
| 4 | mkdir -p target/L558 qualification/evidence/L558 |
| 5 | seed=29b12760f4c962606411d6bf25032aedef063301 |
| 6 | expected=191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 |
| 7 | if [[ ${1-} == --birth ]]; then |
| 8 | # Extract immutable objects into OUR output directory. Never build in L408's tree. |
| 9 | test ! -e target/L558/seed-source |
| 10 | mkdir target/L558/seed-source |
| 11 | git -C "${OMEGA_REPO:-../omega-in-omega}" archive "$seed" | tar -x -C target/L558/seed-source |
| 12 | (cd target/L558/seed-source && quiet-build sh seed/omega-from-seed.sh) > qualification/evidence/L558/seed-birth.log 2>&1 |
| 13 | cp target/L558/seed-source/seed/out/omc target/L558/omc |
| 14 | elif [[ -n ${OMC-} ]]; then |
| 15 | cp "$OMC" target/L558/omc |
| 16 | fi |
| 17 | printf '%s target/L558/omc\n' "$expected" | sha256sum -c - |
| 18 | quiet-build sh -c 'target/L558/omc < omega/hardware/map.om > target/L558/hardware-map.tmp' |
| 19 | test -s target/L558/hardware-map.tmp |
| 20 | chmod +x target/L558/hardware-map.tmp |
| 21 | mv target/L558/hardware-map.tmp target/L558/hardware-map |
| 22 | { |
| 23 | printf 'compiler_source=%s\n' "$seed" |
| 24 | printf 'base_interplane=b669d06e21c9debb15073289d7c0b78b1b2d362c\n' |
| 25 | sha256sum target/L558/omc omega/hardware/map.om target/L558/hardware-map |
| 26 | } > qualification/evidence/L558/build.txt |