From 905bad42525b44e2d6fb781848df099c5638ce98 Mon Sep 17 00:00:00 2001 From: Keyon Jie Date: Wed, 23 Jan 2019 18:19:00 +0800 Subject: [PATCH] scripts: xtensa-build-all: Add support to force build UP Arch Add -u option to allow force building xtensa(up) ARCH on platforms which usually building xtensa-smp by default. Signed-off-by: Keyon Jie --- scripts/xtensa-build-all.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/xtensa-build-all.sh b/scripts/xtensa-build-all.sh index daca41573..36eeec9bb 100755 --- a/scripts/xtensa-build-all.sh +++ b/scripts/xtensa-build-all.sh @@ -3,6 +3,7 @@ SUPPORTED_PLATFORMS=(byt cht bdw hsw apl cnl sue icl skl kbl) BUILD_ROM=no BUILD_DEBUG=no +BUILD_FORCE_UP=no BUILD_JOBS=1 BUILD_JOBS_NEXT=0 @@ -15,6 +16,7 @@ then echo "usage: xtensa-build.sh [options] platform(s)" echo " [-r] Build rom (gcc only)" echo " [-a] Build all platforms" + echo " [-u] Force UP ARCH" echo " [-d] Enable debug build" echo " [-j [n]] Set number of make build jobs. Infinite jobs with no arg." echo " Supported platforms ${SUPPORTED_PLATFORMS[@]}" @@ -26,6 +28,10 @@ else then BUILD_ROM=yes + elif [[ "$args" == "-u" ]] + then + BUILD_FORCE_UP=yes + elif [[ "$args" == "-d" ]] then BUILD_DEBUG=yes @@ -245,12 +251,22 @@ do if [[ "x$BUILD_DEBUG" == "xyes" ]] then echo "CONFIG_DEBUG=y" >> override.config - make overrideconfig fi if [[ "x$BUILD_ROM" == "xyes" && "x$HAVE_ROM" == "xyes" ]] then echo "CONFIG_BUILD_VM_ROM=y" >> override.config + fi + + # override default ARCH if BUILD_FORCE_UP is set + if [ "x$BUILD_FORCE_UP" == "xyes" ] + then + echo "Force building UP(xtensa)..." + echo "CONFIG_SMP=n" >> override.config + fi + + if [ -e override.config ] + then make overrideconfig fi