]> git.hungrycats.org Git - linux/commitdiff
zygo: make-kernel: build the modules again in 2020
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 25 Dec 2020 10:07:19 +0000 (05:07 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 25 Dec 2020 10:46:04 +0000 (05:46 -0500)
zygo: make-kernel: build the modules in parallel with separate make.logs

zygo: make-kernel: modules need fakeroot

zygo: make-kernel: target is binary_modules

zygo/make-kernel

index 202e823fe126835cfe67fab0e9174bf038173fc0..d02d5c9e08ce191a97f3cb710df7cc77f8c34116 100755 (executable)
@@ -1,17 +1,24 @@
 #!/bin/bash
 set -xP
-rev=9zb${PWD##*-9zb}
 
 # Reread $PWD
 cd .
 
-(
-       set -a
-       MAKEFLAGS="EXTRAVERSION=$EXTRAVERSION"
-       MODULE_LOC=$PWD/../modules 
-       INSTALLKERNEL=true
-       KBUILD_DIR=$PWD
-       set +a
-       procsOnln=$(getconf _NPROCESSORS_ONLN)
-       annotate-output make -j$((procsOnln * 2)) bindeb-pkg EXTRAVERSION="$EXTRAVERSION"
-) 2>&1 | tee make.log
+# Count CPU threads
+procsOnln=$(getconf _NPROCESSORS_ONLN)
+
+# Set env vars (probably no longer used, except MAKEFLAGS)
+set -a
+MAKEFLAGS="EXTRAVERSION=$EXTRAVERSION -j$((procsOnln * 2)) -O"
+MODULE_LOC=$PWD/../modules
+INSTALLKERNEL=true
+KBUILD_DIR=$PWD
+set +a
+
+annotate-output make bindeb-pkg 2>&1 | tee make.log
+
+for x in ../modules/*/; do
+       (cd "$x" && annotate-output fakeroot debian/rules binary_modules KDREV=1 2>&1 | tee make.log) &
+done
+
+wait