rebuild-testbench.sh: rename BUILD_TESTBENCH_DIR to TESTBENCH_DIR

It's a source directory, not a build directory.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2023-12-11 23:37:44 +00:00 committed by Liam Girdwood
parent 954b862017
commit caf28abbcd
1 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ set -e
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
SOF_REPO=$(dirname "$SCRIPT_DIR")
BUILD_TESTBENCH_DIR="$SOF_REPO"/tools/testbench
TESTBENCH_DIR="$SOF_REPO"/tools/testbench
# Defaults
BUILD_TYPE=native
@ -40,7 +40,7 @@ die()
rebuild_testbench()
{
cd "$BUILD_TESTBENCH_DIR"
cd "$TESTBENCH_DIR"
rm -rf "$BUILD_DIR_NAME"
mkdir "$BUILD_DIR_NAME"
@ -88,7 +88,7 @@ setup_xtensa_tools_build()
install_bin=install/tools/$TOOLCHAIN_VER/XtensaTools/bin
tools_bin=$XTENSA_TOOLS_ROOT/$install_bin
testbench_sections="-Wl,--sections-placement $BUILD_TESTBENCH_DIR/testbench_xcc_sections.txt"
testbench_sections="-Wl,--sections-placement $TESTBENCH_DIR/testbench_xcc_sections.txt"
export CC=$tools_bin/$COMPILER
export LD=$tools_bin/xt-ld
export OBJDUMP=$tools_bin/xt-objdump
@ -98,7 +98,7 @@ setup_xtensa_tools_build()
export_xtensa_setup()
{
export_dir=$BUILD_TESTBENCH_DIR/$BUILD_DIR_NAME
export_dir=$TESTBENCH_DIR/$BUILD_DIR_NAME
export_script=$export_dir/xtrun_env.sh
xtbench=$export_dir/testbench
xtbench_run="XTENSA_CORE=$XTENSA_CORE \$XTENSA_TOOLS_ROOT/$install_bin/xt-run $xtbench"