fixing few errors in build with headers and musl

This commit is contained in:
cowmonk 2025-11-15 01:18:52 -07:00
parent 00915846b7
commit e12419d686
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,7 @@ if command -v "clang" >/dev/null 2>&1 && command -v "lld" >/dev/null 2>&1; then
export LLVM_IAS=1 export LLVM_IAS=1
fi fi
if [ -z ./build/"$LINUX_SOURCE" ]; then if [ ! -d ./build/"$LINUX_SOURCE" ]; then
echo "Extracting Linux tarball to ./build/" echo "Extracting Linux tarball to ./build/"
tar -xpf ./sources/"$LINUX_TAR" -C ./build tar -xpf ./sources/"$LINUX_TAR" -C ./build
else else
@ -37,7 +37,6 @@ make mrproper
make headers make headers
find usr/include -type f ! -name '*.h' -delete find usr/include -type f ! -name '*.h' -delete
cp -rv usr/include/* ../"$FROOT"/include/ cp -rv usr/include/* ../"$FROOT"/include/
rm -v ../"$FROOT"/include/Makefile
exit exit

View file

@ -2,7 +2,7 @@
set -eu set -eu
ARCH=$(uname -m) ARCH=$(uname -m)
FROOT="$ARCH-musllvm" FROOT="./build/$ARCH-musllvm"
MUSL_TAR=$(ls ./sources/musl-*.tar.* 2>/dev/null | head -n 1 | xargs basename) MUSL_TAR=$(ls ./sources/musl-*.tar.* 2>/dev/null | head -n 1 | xargs basename)
if [ -z "$MUSL_TAR" ]; then if [ -z "$MUSL_TAR" ]; then
echo "ERR: No Musl tarball found in sources directory" echo "ERR: No Musl tarball found in sources directory"