summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-10-31 20:22:49 (GMT)
committerH. Peter Anvin <hpa@linux.intel.com>2011-10-31 20:22:49 (GMT)
commitacdbc855eed0e10804a9f2aca131e8fc1c8fa103 (patch)
treed7d59a57848375db8a6abc19b35ceae04863a1ad
parent996ee1cfbcf5856d58627f60a2706c86c91ae492 (diff)
downloadktest-acdbc855eed0e10804a9f2aca131e8fc1c8fa103.zip
ktest-acdbc855eed0e10804a9f2aca131e8fc1c8fa103.tar.gz
ktest-acdbc855eed0e10804a9f2aca131e8fc1c8fa103.tar.bz2
ktest-acdbc855eed0e10804a9f2aca131e8fc1c8fa103.tar.xz
allmake.sh: allow JOBS to be overridden
-rwxr-xr-xallmake.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/allmake.sh b/allmake.sh
index a085478..0a5111b 100755
--- a/allmake.sh
+++ b/allmake.sh
@@ -16,8 +16,10 @@ fi
here=`dirname "$0"`
-cpus=$(grep '^processor' < /proc/cpuinfo | wc -l)
-jobs=$((cpus))
+if [ -z "$JOBS" ]; then
+ cpus=$(grep '^processor' < /proc/cpuinfo | wc -l)
+ JOBS=$((cpus))
+fi
# This can be 'ccache gcc'
gcc=gcc
@@ -80,6 +82,6 @@ $c:
EOF
done
-make -j$jobs -f $MKFILE "$@"
-make -j$jobs -f $MKFILE FDARGS="$fdargs" TARGET=isoimage TEEOPT='-a' "$@"
+make -j$JOBS -f $MKFILE "$@"
+make -j$JOBS -f $MKFILE FDARGS="$fdargs" TARGET=isoimage TEEOPT='-a' "$@"
rm -f $MKFILE