scripts: add rom build option

Enable build rom for the target. Could only use with GCC compiler.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2018-12-03 14:36:50 +08:00 committed by Liam Girdwood
parent 95a3d93bbd
commit 8174738b53
1 changed files with 6 additions and 1 deletions

View File

@ -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}