all.sh: fix MAKEFLAGS setting

MAKEFLAGS was set to -j if it was already set, instead of being set if
not previously set as intended. So now all.sh will do parallel builds
if invoked without MAKEFLAGS in the environment.
This commit is contained in:
Gilles Peskine 2019-01-06 20:15:26 +00:00
parent a16c2b1ff1
commit a1fc4b5ead

View file

@ -122,7 +122,7 @@ pre_initialize_variables () {
: ${ARMC6_BIN_DIR:=/usr/bin}
# if MAKEFLAGS is not set add the -j option to speed up invocations of make
if [ -n "${MAKEFLAGS+set}" ]; then
if [ -z "${MAKEFLAGS+set}" ]; then
export MAKEFLAGS="-j"
fi
}