xtensa-build-all.sh: rename local variable COMPILER to build_dir_suffix

"COMPILER" is a very common name with a high risk of collision. Don't
use it for a minor, local variable. This also reduces confusion.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2024-08-09 22:29:08 +00:00 committed by Kai Vehmanen
parent b8a4ddffac
commit 8236f38d08
1 changed files with 3 additions and 3 deletions

View File

@ -234,15 +234,15 @@ do
export XTENSA_SYSTEM=$XTENSA_BUILDS_DIR/$XTENSA_CORE/config
printf 'XTENSA_SYSTEM=%s\n' "${XTENSA_SYSTEM}"
PATH=$XTENSA_TOOLS_DIR/XtensaTools/bin:$OLDPATH
COMPILER="xcc"
build_dir_suffix='xcc'
else
TOOLCHAIN=$HOST
PATH=$SOF_TOP/../$HOST/bin:$OLDPATH
COMPILER="gcc"
build_dir_suffix='gcc'
DEFCONFIG_PATCH=""
fi
BUILD_DIR=build_${platform}_${COMPILER}
BUILD_DIR=build_${platform}_${build_dir_suffix}
printf "Build in %s\n" "$BUILD_DIR"
# only delete binary related to this build