From ec951917f23e773e9d6f624181ae0d23b091ff52 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 3 Sep 2024 16:51:02 +0300 Subject: [PATCH 1/2] Scripts: Cleanup set_xtensa_params.sh This script is used to get detailed build parameters for testbench-xt version build. The PLATFORM is in most cases the same as the platform name in build command line so it can be set as default. Only the cases when the name is different need to be preserved. Signed-off-by: Seppo Ingalsuo --- scripts/set_xtensa_params.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/set_xtensa_params.sh b/scripts/set_xtensa_params.sh index 37c2bdbdf09d..a78cb05f3fbd 100644 --- a/scripts/set_xtensa_params.sh +++ b/scripts/set_xtensa_params.sh @@ -36,6 +36,7 @@ platform=$1 # duplication in this first, very verbose `case` statement. Prefer # adding a new, smarter, per-variable `case` statement like the one for # ZEPHYR_TOOLCHAIN_VARIANT below +PLATFORM="$platform" case "$platform" in # Intel @@ -59,32 +60,27 @@ case "$platform" in PLATFORM_PRIVATE_KEY="-D${SIGNING_TOOL}_PRIVATE_KEY=$SOF_TOP/keys/otc_private_key_3k.pem" ;; mtl|lnl) - PLATFORM="$platform" XTENSA_CORE="ace10_LX7HiFi4_2022_10" TOOLCHAIN_VER="RI-2022.10-linux" ;; # NXP imx8) - PLATFORM="imx8" XTENSA_CORE="hifi4_nxp_v3_3_1_2_2017" HOST="xtensa-imx-elf" TOOLCHAIN_VER="RG-2017.8-linux" ;; imx8x) - PLATFORM="imx8x" XTENSA_CORE="hifi4_nxp_v3_3_1_2_2017" HOST="xtensa-imx-elf" TOOLCHAIN_VER="RG-2017.8-linux" ;; imx8m) - PLATFORM="imx8m" XTENSA_CORE="hifi4_mscale_v0_0_2_2017" HOST="xtensa-imx8m-elf" TOOLCHAIN_VER="RG-2017.8-linux" ;; imx8ulp) - PLATFORM="imx8ulp" XTENSA_CORE="hifi4_nxp2_ulp_prod" HOST="xtensa-imx8ulp-elf" TOOLCHAIN_VER="RG-2017.8-linux" @@ -105,14 +101,12 @@ case "$platform" in TOOLCHAIN_VER="RI-2019.1-linux" ;; vangogh) - PLATFORM="vangogh" ARCH="xtensa" XTENSA_CORE="ACP_5_0_001_PROD" HOST="xtensa-vangogh-elf" TOOLCHAIN_VER="RI-2019.1-linux" ;; acp_6_3) - PLATFORM="acp_6_3" ARCH="xtensa" XTENSA_CORE="ACP_6_3_HiFi5_PROD_Linux" HOST="xtensa-acp_6_3-elf" @@ -121,19 +115,16 @@ case "$platform" in # Mediatek mt8186) - PLATFORM="mt8186" XTENSA_CORE="hifi5_7stg_I64D128" HOST="xtensa-mt8186-elf" TOOLCHAIN_VER="RI-2020.5-linux" ;; mt8188) - PLATFORM="mt8188" XTENSA_CORE="hifi5_7stg_I64D128" HOST="xtensa-mt8188-elf" TOOLCHAIN_VER="RI-2020.5-linux" ;; mt8195) - PLATFORM="mt8195" XTENSA_CORE="hifi4_8195_PROD" HOST="xtensa-mt8195-elf" TOOLCHAIN_VER="RI-2019.1-linux" From 44935c056f20e73d16f0e6dd1eb97db920e324bd Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Wed, 28 Aug 2024 17:30:30 +0300 Subject: [PATCH 2/2] Scripts: Add testbench build for Intel PTL platform DSP This patch adds to "scripts/rebuild-testbench.sh -p ptl" option to test processing components with PTL ACE3.0 DSP build. Signed-off-by: Seppo Ingalsuo --- scripts/set_xtensa_params.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/set_xtensa_params.sh b/scripts/set_xtensa_params.sh index a78cb05f3fbd..bb12019e8aa0 100644 --- a/scripts/set_xtensa_params.sh +++ b/scripts/set_xtensa_params.sh @@ -63,6 +63,10 @@ case "$platform" in XTENSA_CORE="ace10_LX7HiFi4_2022_10" TOOLCHAIN_VER="RI-2022.10-linux" ;; + ptl) + XTENSA_CORE="ace30_LX7HiFi4_PIF" + TOOLCHAIN_VER="RI-2022.10-linux" + ;; # NXP imx8) @@ -138,7 +142,7 @@ esac # Pre-zephyr "XTOS" build, testbench,... case "$platform" in - mtl|lnl) + mtl|lnl|ptl) SOF_CC_BASE='clang';; *) SOF_CC_BASE='xcc';;