foundry
Foundry OS: the operating system built on the Rustbelt kernel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #!/usr/bin/env bash
# Build sbase (suckless's small Unix tools: one short C file per tool) for
# Foundry OS: unpack the cached tarball, apply patches/*.patch in order, then
# sbase's plain Makefile (no configure step) with our compiler:
# make CC=toolchain/foundry-cc
# Every tool comes out as its own static-PIE program. They are installed in
# /usr/lib/sbase on the ext2 root, OFF the default PATH, so the Foundry OS
# Rust tools (/bin/ls, /bin/cat, ...) stay the default: run an sbase tool by
# its full path, e.g. /usr/lib/sbase/sort, or put the directory on PATH
# yourself (PATH=/usr/lib/sbase:$PATH).
#
# Usage: ports/sbase/build.sh CACHE_DIR BUILD_DIR OUT_DIR
# OUT_DIR/bin/ gets every tool; OUT_DIR/tools.txt lists their names.
HERE=
ROOT=
CACHE= BUILD= OUTDIR=
&&
src=/
for; do
[ || continue
;
done
||
{ ; ; }
# The tool list is the Makefile's BIN variable (one name per line).
tools=
&&
for; do
if | ; then
;
fi
done
|