From d289bcff32f9eede7f9a0e01f1566f80de37d0d8 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 18 Nov 2021 08:50:26 +0000 Subject: [PATCH 1/2] xtensa-build-zephyr: add new DEFAULT_PLATFORMS variable for -a Sometimes we don't want to build all SUPPORTED_PLATFORMS by default. Signed-off-by: Marc Herbert --- scripts/xtensa-build-zephyr.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/xtensa-build-zephyr.sh b/scripts/xtensa-build-zephyr.sh index 212bfe2ab15a..7910f29f45ea 100755 --- a/scripts/xtensa-build-zephyr.sh +++ b/scripts/xtensa-build-zephyr.sh @@ -15,6 +15,9 @@ SUPPORTED_PLATFORMS+=(apl cnl icl tgl-h tgl) # NXP SUPPORTED_PLATFORMS+=(imx8 imx8x imx8m) +# -a +DEFAULT_PLATFORMS=("${SUPPORTED_PLATFORMS[@]}") + BUILD_JOBS=$(nproc --all) PLATFORMS=() @@ -281,7 +284,7 @@ parse_args() # Parse -options while getopts "acz:j:k:p:" OPTION; do case "$OPTION" in - a) PLATFORMS=("${SUPPORTED_PLATFORMS[@]}") ;; + a) PLATFORMS=("${DEFAULT_PLATFORMS[@]}") ;; c) DO_CLONE=yes ;; z) zephyr_ref="$OPTARG" ;; j) BUILD_JOBS="$OPTARG" ;; From 19ade44bd03ebb07962cc89b3392d3108457cf89 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 18 Nov 2021 08:57:22 +0000 Subject: [PATCH 2/2] xtensa-build-zephyr: temporarily exclude ICL Because ICL fails to build, .noinit/.cached section overlap since revert https://github.com/zephyrproject-rtos/zephyr/pull/40319 Signed-off-by: Marc Herbert --- scripts/xtensa-build-zephyr.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/xtensa-build-zephyr.sh b/scripts/xtensa-build-zephyr.sh index 7910f29f45ea..f65b7f01b07b 100755 --- a/scripts/xtensa-build-zephyr.sh +++ b/scripts/xtensa-build-zephyr.sh @@ -18,6 +18,11 @@ SUPPORTED_PLATFORMS+=(imx8 imx8x imx8m) # -a DEFAULT_PLATFORMS=("${SUPPORTED_PLATFORMS[@]}") +# REVERTME: temporarily exclude ICL because of .noinit/.cached section +# overlap and build failure +# https://github.com/zephyrproject-rtos/zephyr/pull/40319 +unset DEFAULT_PLATFORMS[2] + BUILD_JOBS=$(nproc --all) PLATFORMS=()