]> git.zerfleddert.de Git - m1-debian/commitdiff
14:04 < axboe> Glanzmann: 2xcpus for compiles is somewhat of a relic of the days...
authorThomas Glanzmann <thomas@glanzmann.de>
Wed, 2 Mar 2022 13:45:57 +0000 (14:45 +0100)
committerThomas Glanzmann <thomas@glanzmann.de>
Wed, 2 Mar 2022 13:45:57 +0000 (14:45 +0100)
14:05 < axboe> on decent storage these days, -jN where N is close to the number of CPUs will usually give you the best results, with N+small_bump might be a tad faster, but 2N is usually somewhat slower
14:05 < axboe> (just my experience, and this is all based on compiling the kernel, ymmv on other things obviously)

bootstrap.sh

index 356549dc78d62d61a0f6af0a64df11a6c99cdb1c..17e38335abff0fc693e0ac6f571b949ac6477cfc 100644 (file)
@@ -34,7 +34,7 @@ build_linux()
         curl -s https://tg.st/u/XKVZ.patch | git am -
         curl -s https://tg.st/u/config-2022-02-19 > .config
         make olddefconfig
-        make -j $(( 2* `nproc`)) V=0 bindeb-pkg
+        make -j `nproc` V=0 bindeb-pkg
 )
 }
 
@@ -45,7 +45,7 @@ build_m1n1()
         cd m1n1
         git fetch
         git reset --hard origin/main; git clean -f -x -d &> /dev/null
-        make -j $(( 2* `nproc`))
+        make -j `nproc`
 )
 }
 
@@ -59,7 +59,7 @@ build_uboot()
         git reset --hard origin/x2r10g10b10; git clean -f -x -d &> /dev/null
         curl -s https://tg.st/u/v2-console-usb-kbd-Limit-poll-frequency-to-improve-performance.diff | patch -p1
         make apple_m1_defconfig
-        make -j $(( 2* `nproc`))
+        make -j `nproc`
 )
 
         cat m1n1/build/m1n1.bin   `find linux/arch/arm64/boot/dts/apple/ -name \*.dtb` u-boot/u-boot-nodtb.bin > u-boot.bin
Impressum, Datenschutz