Updated build script to allocate threads for building based on the number of threads the build system has available

This commit is contained in:
Nathan 2025-02-05 10:26:07 -06:00
parent 9f104416ed
commit e1ff953af6

View File

@ -182,7 +182,7 @@ if [ "$RV1106" == "1" ]; then
export CROSS_COMPILE=arm-linux-gnueabi-
fi
make ARCH=arm LOCALVERSION= $cfg
make ARCH=arm LOCALVERSION= -j8
make ARCH=arm LOCALVERSION= -j$(($(nproc) - 2))
cp arch/arm/boot/zImage vmlinuz
for dtb_f in $dtb
do
@ -198,8 +198,8 @@ if [ "$RV1106" == "1" ]; then
mkdir -p out/extlinux
else
make ARCH=arm64 LOCALVERSION= $cfg
make ARCH=arm64 LOCALVERSION= -j8
make ARCH=arm64 LOCALVERSION= modules -j8
make ARCH=arm64 LOCALVERSION= -j$(($(nproc) - 2))
make ARCH=arm64 LOCALVERSION= modules -j$(($(nproc) - 2))
cp arch/arm64/boot/Image.gz vmlinuz
cp arch/arm64/boot/Image Image
for dtb_f in $dtb