scripts: build-all: postpone VERBOSE decision to "make" time

CMAKE_VERBOSE_MAKE was sometimes "hardcoding" the decision in CMake's
cache. Move that decision to the make invocation.

After running xtensa-build-all.sh [-v], it's now possible to choose
again whether "make -C build_apl_gcc/" should be VERBOSE or not without
starting from scratch and with the exact same configuration.

Before this commit it was possible for make to decide again after a
non-verbose xtensa-build-all.sh but not possible to decide again after a
verbose xtensa-build-all.sh... very confusing.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2020-03-24 21:22:07 -07:00 committed by Liam Girdwood
parent 93f8859148
commit ffedf5be56
1 changed files with 3 additions and 4 deletions

View File

@ -9,7 +9,7 @@ BUILD_DEBUG=no
BUILD_FORCE_UP=no BUILD_FORCE_UP=no
BUILD_JOBS=$(nproc --all) BUILD_JOBS=$(nproc --all)
BUILD_JOBS_NEXT=0 BUILD_JOBS_NEXT=0
BUILD_VERBOSE=OFF BUILD_VERBOSE=
PATH=$pwd/local/bin:$PATH PATH=$pwd/local/bin:$PATH
@ -59,7 +59,7 @@ else
elif [[ "$args" == "-v" ]] elif [[ "$args" == "-v" ]]
then then
BUILD_VERBOSE=ON BUILD_VERBOSE='VERBOSE=1'
# Build all platforms # Build all platforms
elif [[ "$args" == "-a" ]] elif [[ "$args" == "-a" ]]
@ -323,7 +323,6 @@ do
cmake -DTOOLCHAIN=$TOOLCHAIN \ cmake -DTOOLCHAIN=$TOOLCHAIN \
-DROOT_DIR=$ROOT \ -DROOT_DIR=$ROOT \
-DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE} \
${PRIVATE_KEY_OPTION} \ ${PRIVATE_KEY_OPTION} \
.. ..
@ -358,7 +357,7 @@ do
make overrideconfig make overrideconfig
fi fi
make bin -j ${BUILD_JOBS} make bin -j ${BUILD_JOBS} ${BUILD_VERBOSE}
cd "$WORKDIR" cd "$WORKDIR"
done done