Build chain tweaks and cleanup

This commit is contained in:
2022-01-11 18:12:57 +01:00
parent 6c36d3dd40
commit fc54366eec
5 changed files with 36 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh -e
target=x86_64-elf
TARGET=x86_64-elf
SYSROOT=/opt/sysroot
# Pull or update musl libc
@@ -10,12 +10,14 @@ cd musl
git reset --hard
git pull
# Apply patches
[ -d /opt/src/patch-musl ] && rsync -a /opt/src/patch-musl/ /opt/external/musl/
# Build and install
mkdir -p /opt/external/build-musl && cd /opt/external/build-musl
rm -r *
../musl/configure \
--target=${target} \
--target=${TARGET} \
--prefix=${SYSROOT}/usr \
--disable-shared \
--enable-debug \