Build chain tweaks and cleanup
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user