Skip to content

Commit

Permalink
installer: disable incremental builds with XCC due to $XTENSA_SYSTEM
Browse files Browse the repository at this point in the history
In the future we should probably extract the array of XTENSA_SYSTEM
values out of xtensa-build-all.sh

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Mar 4, 2021
1 parent 6807ebc commit 25fc451
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions installer/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,21 @@ BUILD_SOF_RIS := \
${SIGNED_list:%=${BUILDS_ROOT}/build_%_${TOOLCHAIN}/sof.ri}

# The build is not deterministic; use this to reduce noise when testing
# this Makefile
# this Makefile.
# Also very useful with XCC, see next comment.
ifneq (true,${BUILD_ONLY_ONCE})
.PHONY: ${BUILD_SOF_RIS}
endif

# Incremental builds are not possible with XCC because the entire
# toolchain requires $XTENSA_SYSTEM but CMake does not support
# build-time environment variables. In the future we could move the
# XTENSA_SYSTEM values out of xtensa-build-all.sh and into some shared
# config file included here.
${BUILD_SOF_RIS}: ${BUILDS_ROOT}/build_%_${TOOLCHAIN}/sof.ri: | ${BUILDS_ROOT}
cd ${BUILDS_ROOT} && bdir="$$(dirname $@)" && \
if test -d $${bdir}; then cmake --build $${bdir} -- sof; else \
if [ -d $${bdir} ] && [ xcc != "${TOOLCHAIN}" ] ; then \
cmake --build $${bdir} -- sof; else \
$(CURDIR)/../scripts/xtensa-build-all.sh $*; fi


Expand Down

0 comments on commit 25fc451

Please sign in to comment.