make count of jobs hackable by env
This commit is contained in:
parent
42e39c80ba
commit
a76a2e6fca
3
build.sh
3
build.sh
|
@ -3,6 +3,7 @@
|
|||
# environmental and build settings
|
||||
KEYFILE="${KEYFILE:-"$HOME/.ecdsakey"}"
|
||||
GLUON_PRIORITY="${GLUON_PRIORITY:-7}"
|
||||
JOBS=${JOBS:-"$(grep -c '^processor' /proc/cpuinfo)"}
|
||||
|
||||
# start of script
|
||||
set -eu
|
||||
|
@ -26,7 +27,7 @@ fi
|
|||
for target in $GLUON_TARGETS; do
|
||||
echo "Building target ${target}"
|
||||
schedtool -B -e \
|
||||
make --jobs=$(grep -c '^processor' /proc/cpuinfo) --output-sync=recurse \
|
||||
make --jobs=$JOBS --output-sync=recurse \
|
||||
GLUON_TARGET="$target" V=s
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue