boot2.sh (620B)
1 #!/bin/sh 2 ## boot2.sh — stage 2 of the bootstrap chain. 3 ## 4 ## In-container script. Builds the M1pp expander and pokem ELFs from the 5 ## checked-in pre-pruned P1 backend table (P1/P1-$ARCH.M1) plus their 6 ## sources, by calling scripts/boot-build-p1.sh. 7 ## 8 ## Outputs: build/$ARCH/m1pp, build/$ARCH/pokem 9 ## 10 ## Env: ARCH=aarch64|amd64|riscv64 11 12 set -eu 13 14 : "${ARCH:?ARCH must be set}" 15 16 case "$ARCH" in 17 aarch64|amd64|riscv64) ;; 18 *) echo "boot2.sh: unsupported arch '$ARCH'" >&2; exit 1 ;; 19 esac 20 21 sh scripts/boot-build-p1.sh M1pp/M1pp.P1 build/$ARCH/m1pp 22 sh scripts/boot-build-p1.sh pokem/pokem.P1 build/$ARCH/pokem