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