summaryrefslogtreecommitdiff
path: root/Kernel/makeall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/makeall.sh')
-rwxr-xr-xKernel/makeall.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/makeall.sh b/Kernel/makeall.sh
index 73616b02af..f7d7f177b0 100755
--- a/Kernel/makeall.sh
+++ b/Kernel/makeall.sh
@@ -2,7 +2,11 @@
sudo id
-make_cmd="make -j3"
+if [ -z "$MAKEJOBS" ]; then
+ MAKEJOBS=$(nproc)
+fi
+
+make_cmd="make -j $MAKEJOBS"
$make_cmd -C ../LibC clean && \
$make_cmd -C ../LibC && \