make count of jobs hackable by env

This commit is contained in:
Martin/Geno 2019-09-12 22:38:06 +00:00
parent 755bc7003b
commit 847f2e5ade
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 3 additions and 2 deletions

View File

@ -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,8 +27,8 @@ fi
for target in $GLUON_TARGETS; do
echo "Building target ${target}"
schedtool -B -e \
make --jobs=$(grep -c '^processor' /proc/cpuinfo) GLUON_TARGET="$target" || \
make -j1 --output-sync=recurse GLUON_TARGET="$target" V=s
make --jobs=$JOBS --output-sync=recurse \
GLUON_TARGET="$target" V=s
done
# generate manifests