interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / aienux / spark / build_spark_efi.sh

18 lines · 716 bytes Raw Blame History
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).
6set -eu
7ROOT=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd)
8OMC="${OMC:-$ROOT/seed/out/omc}"
9[ -x "$OMC" ] || { echo "FAIL: omc compiler not executable at $OMC (set OMC=/path/to/omc)" >&2; exit 1; }
10cd "$ROOT"
11mkdir -p build
12BIN="$ROOT/build/om-sparkefi.$$"
13trap 'rm -f "$BIN"' EXIT
14cat seed/build/common.om seed/build/sparkefi.om | "$OMC" > "$BIN"
15chmod 755 "$BIN"
16rc=0
17OMC="$OMC" "$BIN" "$@" || rc=$?
18exit "$rc"