summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-26 10:01:50 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-26 10:01:50 +0100
commit873cf3a68f318ba3a7469b0dbb5c9415787eef98 (patch)
tree14b2ee679b9013afea5acc4d7441c02bd5309c87 /scripts
parent9d52ba2003467db001d095a9ac037c29b5ef4aab (diff)
downloadvyos-build-873cf3a68f318ba3a7469b0dbb5c9415787eef98.tar.gz
vyos-build-873cf3a68f318ba3a7469b0dbb5c9415787eef98.zip
When building linux-kernel use number of host CPUs on parallel build
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-kernel2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-kernel b/scripts/build-kernel
index 80229d5d..4a23d9c7 100755
--- a/scripts/build-kernel
+++ b/scripts/build-kernel
@@ -27,7 +27,7 @@ case "$ARCH" in
if [ ${PATCHLEVEL} -lt 14 ]; then
TARGETS+=" kernel_manual kernel_doc"
fi
- CONCURRENCY_LEVEL=4 LOCALVERSION="" make-kpkg --rootcmd fakeroot --initrd --append_to_version -amd64-vyos --revision=$VERSION.$PATCHLEVEL.$SUBLEVEL-1+vyos1+current1 -j4 ${TARGETS}
+ CONCURRENCY_LEVEL=4 LOCALVERSION="" make-kpkg --rootcmd fakeroot --initrd --append_to_version -amd64-vyos --revision=$VERSION.$PATCHLEVEL.$SUBLEVEL-1+vyos1+current1 -j$(cat /proc/cpuinfo | grep processor | wc -l) ${TARGETS}
;;
armhf)