summaryrefslogtreecommitdiff
path: root/scripts/build-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-kernel')
-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)