omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / aienux / spark / build_spark_efi.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # aienux/spark/build_spark_efi.sh -- thin compatibility shim over pure seeded-Omega seed/build/sparkefi.om. |
| 4 | # Zero Python on the bare-metal SPARK.EFI delivery path (word-boundary namespacing + PE32+ verification |
| 5 | # all execute inside pure seeded Omega). |
| 6 | set -eu |
| 7 | ROOT=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd) |
| 8 | OMC="${OMC:-$ROOT/seed/out/omc}" |
| 9 | [ -x "$OMC" ] || { echo "FAIL: omc compiler not executable at $OMC (set OMC=/path/to/omc)" >&2; exit 1; } |
| 10 | cd "$ROOT" |
| 11 | mkdir -p build |
| 12 | BIN="$ROOT/build/om-sparkefi.$$" |
| 13 | trap 'rm -f "$BIN"' EXIT |
| 14 | cat seed/build/common.om seed/build/sparkefi.om | "$OMC" > "$BIN" |
| 15 | chmod 755 "$BIN" |
| 16 | rc=0 |
| 17 | OMC="$OMC" "$BIN" "$@" || rc=$? |
| 18 | exit "$rc" |