summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmake-boot-image.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 006aad2..78a4ada 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -343,7 +343,9 @@ chmod +x "$WORKDIR/initrd/init"
cd "$WORKDIR/kernel"
# Workaround : some kernel version forget to update embed initramfs in certain cases
[ -f usr/initramfs_data.cpio.gz ] && rm usr/initramfs_data.cpio.gz
- make
+ nproc=$(nproc --all)
+ nproc=${nproc:-4}
+ make -j ${nproc+1}
)
# Copy / run result EFI file #