diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-12-18 11:25:06 +0100 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-12-18 11:25:06 +0100 |
commit | 913e73558c8b39af03c1e4d434a4b80ba8288401 (patch) | |
tree | d1e7a56992f4de1a8e3cef2b1312727f0ceec578 | |
parent | 7264a0b342768350b04dab18ef7a59dc714f2997 (diff) | |
download | eficast-913e73558c8b39af03c1e4d434a4b80ba8288401.tar.gz eficast-913e73558c8b39af03c1e4d434a4b80ba8288401.tar.bz2 eficast-913e73558c8b39af03c1e4d434a4b80ba8288401.zip |
make-boot-image : make kernel in parrallel
-rwxr-xr-x | make-boot-image.sh | 4 |
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 # |