build system: Explicitly disallow 'clean' along with non-cleaning targets

Too hard to stage the dependencies so that all clean steps complete before any build steps begin. Also, using and then
deleting and then regenerating SDKCONFIG_MAKEFILE in one pass is really hard to manage successfully.
This commit is contained in:
Angus Gratton
2017-09-04 13:17:32 +10:00
committed by Angus Gratton
parent 97efaab27b
commit 867b20837f
2 changed files with 18 additions and 8 deletions

View File

@@ -116,9 +116,10 @@ build_example () {
# build non-verbose first
local BUILDLOG=${PWD}/examplebuild.${ID}.log
(
make MAKEFLAGS= clean defconfig &> >(tee -a "${BUILDLOG}") &&
make all &> >(tee -a "${BUILDLOG}")
) || {
make MAKEFLAGS= clean &&
make MAKEFLAGS= defconfig &&
make all
) &> >(tee -a "${BUILDLOG}") || {
RESULT=$?; FAILED_EXAMPLES+=" ${EXAMPLE_NAME}"
make MAKEFLAGS= V=1 clean defconfig && make V=1 # verbose output for errors
}