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 | #!/usr/bin/env bash
# Build dash (the Debian Almquist shell, a small POSIX sh) for Foundry OS:
# unpack the cached tarball, apply patches/*.patch in order, then the
# ordinary autoconf steps with our compiler:
# CC=toolchain/foundry-cc ./configure --host=x86_64-linux-musl && make
# foundry-cc makes a static-PIE against our musl, which Rustbelt runs as is.
# The result is installed as /bin/dash. It is NOT /bin/sh yet: the kernel
# starts /bin/sh as its shell, and that stays rbsh until kernel request K5.
#
# Usage: ports/dash/build.sh CACHE_DIR BUILD_DIR OUT_FILE
HERE=
ROOT=
CACHE= BUILD= OUTFILE=
&&
src=/
for; do
[ || continue
;
done
# --host makes configure name the target (we are cross-building for
# Rustbelt), but our binaries also run on the build machine, so configure's
# test programs still work.
CC=/toolchain/foundry-cc CFLAGS="-O2" \
|| { ; ; }
if | ; then
;
fi
|