diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-08-15 22:07:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-08-15 22:07:39 -0700 |
commit | ca6145d5f06f8a7f02cd5f8807780483619ac518 (patch) | |
tree | 1c1644418de1bf25ec318596986cc2775dce21d9 /allmake.sh | |
parent | 44e2d6e48c5839e2a9ec8c0eb7c7a320a60ab7da (diff) | |
download | ktest-ca6145d5f06f8a7f02cd5f8807780483619ac518.tar.gz ktest-ca6145d5f06f8a7f02cd5f8807780483619ac518.tar.xz ktest-ca6145d5f06f8a7f02cd5f8807780483619ac518.zip |
allmake: allow setting the number of jobs
Diffstat (limited to 'allmake.sh')
-rwxr-xr-x | allmake.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |