From 8174738b53cb45622087ea596c11ce1386bc4139 Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Mon, 3 Dec 2018 14:36:50 +0800 Subject: [PATCH] scripts: add rom build option Enable build rom for the target. Could only use with GCC compiler. Signed-off-by: Pan Xiuli --- scripts/xtensa-build-all.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/xtensa-build-all.sh b/scripts/xtensa-build-all.sh index af730f4b2..7186f2b88 100755 --- a/scripts/xtensa-build-all.sh +++ b/scripts/xtensa-build-all.sh @@ -12,6 +12,7 @@ if [ "$#" -eq 0 ] then echo "usage: xtensa-build.sh [options] platform(s)" echo " [-l] Build rimage locally" + echo " [-r] Build rom (gcc only)" echo " [-a] Build all platforms" echo " [-d] Enable debug build" echo " [-j [n]] Set number of make build jobs. Infinite jobs with no arg." @@ -27,6 +28,10 @@ else PATH=$pwd/local/bin:$PATH + elif [[ "$args" == "-r" ]] + then + BUILD_ROM="--enable-roms" + elif [[ "$args" == "-d" ]] then BUILD_DEBUG=yes @@ -244,7 +249,7 @@ do ./configure --with-arch=$ARCH --with-platform=$PLATFORM \ --with-root-dir=$ROOT --host=$HOST --enable-debug=$BUILD_DEBUG \ CC=$XCC OBJCOPY=$XTOBJCOPY OBJDUMP=$XTOBJDUMP \ - --with-dsp-core=$XTENSA_CORE + --with-dsp-core=$XTENSA_CORE $BUILD_ROM make clean make -j ${BUILD_JOBS}