From ff806b4f54d93fdcca63cf2865e2b146ea11b7cc Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Tue, 12 Dec 2023 01:48:25 +0000 Subject: [PATCH] rebuild-testbench.sh: add incremental build command in help message Add interactive menuconfig and incremental build commands in help message of rebuild-testbench.sh Signed-off-by: Marc Herbert --- scripts/rebuild-testbench.sh | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/scripts/rebuild-testbench.sh b/scripts/rebuild-testbench.sh index 76da4acba98c..70b11e91633c 100755 --- a/scripts/rebuild-testbench.sh +++ b/scripts/rebuild-testbench.sh @@ -10,6 +10,7 @@ SOF_REPO=$(dirname "$SCRIPT_DIR") TESTBENCH_DIR="$SOF_REPO"/tools/testbench # Defaults +BUILD_BACKEND='make' BUILD_TYPE=native BUILD_DIR_NAME=build_testbench BUILD_TARGET=install @@ -23,7 +24,7 @@ usage: $0 [-f] [-p ] When omitted, perform a BUILD_TYPE=native, compile-only check. -f Build testbench with compiler provided by fuzzer (default path: $HOME/sof/work/AFL/afl-gcc) - -j number of parallel make/ninja jobs. Defaults to /usr/bin/nproc. + -j number of parallel $BUILD_BACKEND jobs. Defaults to /usr/bin/nproc. You MUST re-run with -j1 when something is failing! EOFUSAGE } @@ -100,11 +101,32 @@ EOFSETUP testbench_usage() { + local src_env_msg + if [ "$BUILD_TYPE" = 'xt' ]; then + export_xtensa_setup + src_env_msg="source $export_script" + fi + +cat <