Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion scripts/xtensa-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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[@]}"
Expand All @@ -26,6 +28,10 @@ else
then
BUILD_ROM=yes

elif [[ "$args" == "-u" ]]
then
BUILD_FORCE_UP=yes

elif [[ "$args" == "-d" ]]
then
BUILD_DEBUG=yes
Expand Down Expand Up @@ -235,12 +241,22 @@ do
if [[ "x$BUILD_DEBUG" == "xyes" ]]
then
echo "CONFIG_DEBUG=y" >> override.config
make overrideconfig
fi

if [[ "x$BUILD_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

Expand Down