summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMikhail Kobuk <m.kobuk@ispras.ru>2024-04-19 16:48:35 +0300
committerMikhail Kobuk <m.kobuk@ispras.ru>2024-04-19 16:48:35 +0300
commitabb12f81f2f1e3c1a96296041e280343cdefc6a7 (patch)
treeb4628b439efa235eba4d49578681dddf87cdecdc /build.sh
parent0ce458cbd2b8c3b69cb28855934a037e6c1776ad (diff)
downloadlinux-abb12f81f2f1e3c1a96296041e280343cdefc6a7.tar.gz
removed hardcoded threads value -> get it from nproc
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 0b86287..f4cba51 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ if [ "$2" != "" ]; then
echo "appending 'KERNELRELEASE=$2'" | sed 's/^/--> /g'
fi
-make KERNELRELEASE="$2" -j16 | sed 's/^/--> /g'
+make KERNELRELEASE="$2" -j`nproc` | sed 's/^/--> /g'
if [ "$?" != "0" ]; then
echo "MAKE FAIL []"