mirror of https://github.com/thesofproject/sof.git
Scripts: Testbench: Add xt-testbench build for MTL with xt-clang
Build for MTL needs other compiler xt-clang, so the COMPILER is set by default to xt-xcc and changed for MTL in set_xtensa_params.sh where also core and tools version is defined. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
b9bd2303bd
commit
2006297ee2
|
@ -57,6 +57,7 @@ setup_xtensa_tools_build()
|
|||
BUILD_TYPE=xt
|
||||
BUILD_TARGET=
|
||||
BUILD_DIR_NAME=build_xt_testbench
|
||||
COMPILER="xt-xcc"
|
||||
|
||||
# check needed environment variables
|
||||
test -n "${XTENSA_TOOLS_ROOT}" || die "XTENSA_TOOLS_ROOT need to be set.\n"
|
||||
|
@ -72,11 +73,10 @@ setup_xtensa_tools_build()
|
|||
test -n "${XTENSA_CORE}" ||
|
||||
die "Illegal platform $BUILD_PLATFORM, no XTENSA_CORE found.\n"
|
||||
|
||||
compiler="xt-xcc"
|
||||
install_bin=install/tools/$XTENSA_TOOLS_VERSION/XtensaTools/bin
|
||||
tools_bin=$XTENSA_TOOLS_ROOT/$install_bin
|
||||
testbench_sections="-Wl,--sections-placement $BUILD_TESTBENCH_DIR/testbench_xcc_sections.txt"
|
||||
export CC=$tools_bin/$compiler
|
||||
export CC=$tools_bin/$COMPILER
|
||||
export LD=$tools_bin/xt-ld
|
||||
export OBJDUMP=$tools_bin/xt-objdump
|
||||
export LDFLAGS="-mlsp=sim $testbench_sections"
|
||||
|
|
|
@ -81,4 +81,10 @@ case "$platform" in
|
|||
HOST="xtensa-mt8195-elf"
|
||||
XTENSA_TOOLS_VERSION="RI-2019.1-linux"
|
||||
;;
|
||||
mtl)
|
||||
PLATFORM="mtl"
|
||||
XTENSA_CORE="ace10_LX7HiFi4_2022_10"
|
||||
XTENSA_TOOLS_VERSION="RI-2022.10-linux"
|
||||
COMPILER="xt-clang"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue