Optimize build script.

This commit is contained in:
longpanda
2026-10-12 18:31:51 +08:00
parent 06037474e6
commit 8dde4cd56f
8 changed files with 42 additions and 6 deletions
+2
View File
@@ -5,6 +5,8 @@ if ! [ -f ./dietlibc-0.34.tar.xz ]; then
exit 1
fi
echo "======= install dietlibc =============="
rm -rf /opt/diet32
rm -rf /opt/diet64
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
if ! [ -f ./musl-1.2.1.tar.gz ]; then
echo "No musl-1.2.1.tar.gz found ..."
exit 1
fi
echo "======= install musl =============="
tar xf musl-1.2.1.tar.gz
cd musl-1.2.1
./configure && make install
cd ..
rm -rf musl-1.2.1
echo ""
echo " ================ success ==============="
echo ""
+3 -1
View File
@@ -1,6 +1,8 @@
#!/bin/bash
#[ -d /opt/diet64 ] || sh ./installdietlibc.sh
[ -d /opt/diet64 ] || sh ./installdietlibc.sh
[ -d /usr/local/musl ] || sh ./installmusl.sh
[ -d /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu ] || tar xf /opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz -C /opt
+5
View File
@@ -15,6 +15,10 @@ fi
# use musl-c to build for x86_64
#
if [ ! -d $LIBFUSE_DIR ]; then
sh build_libfuse.sh
fi
export C_INCLUDE_PATH=$LIBFUSE_DIR/include
rm -f $name
@@ -30,3 +34,4 @@ fi
strip --strip-all $name
rm -rf $LIBFUSE_DIR
+6
View File
@@ -8,6 +8,11 @@ name=vtoy_fuse_iso_aa64
export C_INCLUDE_PATH=$LIBFUSE_DIR/include
if [ ! -d $LIBFUSE_DIR ]; then
sh build_libfuse_aarch64.sh
fi
rm -f $name
aarch64-buildroot-linux-uclibc-gcc -static -O2 -D_FILE_OFFSET_BITS=64 vtoy_fuse_iso.c -o $name $LIBFUSE_DIR/lib/libfuse.a
@@ -19,3 +24,4 @@ fi
aarch64-buildroot-linux-uclibc-strip --strip-all $name
rm -rf $LIBFUSE_DIR
+2 -1
View File
@@ -33,8 +33,9 @@ fi
./makeconf.sh
./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs'
./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs' --disable-example
make -j 16
make install
cd ..
rm -rf libfuse
+1 -1
View File
@@ -37,7 +37,7 @@ sed '/#define *__s64/d' -i include/fuse_kernel.h
sed 's/__u64/uint64_t/g' -i include/fuse_kernel.h
sed 's/__s64/int64_t/g' -i include/fuse_kernel.h
./configure --prefix="$LIBFUSE_DIR" --host=aarch64 CC=aarch64-buildroot-linux-uclibc-gcc
./configure --prefix="$LIBFUSE_DIR" --host=aarch64 --disable-example CC=aarch64-buildroot-linux-uclibc-gcc
make -j 16
+3 -3
View File
@@ -44,9 +44,9 @@ sh buildedk.sh >> $LOG 2>&1 || exit 1
#cd $VTOY_PATH/vtoycli
#sh build.sh || exit 1
#cd $VTOY_PATH/FUSEISO
#sh build_libfuse.sh
#sh build.sh
cd $VTOY_PATH/FUSEISO
sh build.sh
sh build_aarch64.sh
# cd $VTOY_PATH/ExFAT