Skip to content

Commit

Permalink
xtensa-build-all.sh: add tgl with xtensa-cnl-elf. No rimage yet.
Browse files Browse the repository at this point in the history
Copy the icl and cnl configurations.

This build with the gcc toolchain has NOT been tested on tgl. The
purpose is purely to add the gcc build to CI, avoid future gcc bitrot
and catch more warnings and bugs.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Jun 22, 2020
1 parent 6833c5d commit 4a87d8c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- <<: *build-platform
env: PLATFORM='jsl'

- <<: *build-platform
env: PLATFORM='tgl'

- name: "./scripts/build-tools.sh"
before_install: *docker-pull-sof
script: ./scripts/docker-run.sh ./scripts/build-tools.sh
Expand Down
26 changes: 21 additions & 5 deletions scripts/xtensa-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -e

SUPPORTED_PLATFORMS=(byt cht bdw hsw apl skl kbl cnl sue icl jsl \
imx8 imx8x imx8m)
imx8 imx8x imx8m tgl)
BUILD_ROM=no
BUILD_DEBUG=no
BUILD_FORCE_UP=no
Expand All @@ -25,7 +25,7 @@ Re-configures and re-builds SOF using the corresponding compiler and
platform's _defconfig file.
usage: xtensa-build.sh [options] platform(s)
-r Build rom (gcc only)
-r Build rom if available (gcc only)
-a Build all platforms
-u Force UP ARCH
-d Enable debug build
Expand Down Expand Up @@ -197,6 +197,14 @@ do
XTENSA_TOOLS_VERSION="RG-2017.8-linux"
HAVE_ROM='yes'
;;
tgl)
PLATFORM="tigerlake"
ARCH="xtensa-smp"
XTENSA_CORE="X6H3CNL_2017_8"
HOST="xtensa-cnl-elf"
XTENSA_TOOLS_VERSION="RG-2017.8-linux"
HAVE_ROM='yes'
;;
jsl)
PLATFORM="jasperlake"
ARCH="xtensa-smp"
Expand Down Expand Up @@ -312,10 +320,18 @@ do
make overrideconfig
fi

make bin -j ${BUILD_JOBS} ${BUILD_VERBOSE}
if [ 'tgl' != "${platform}" ]; then
make bin -j "${BUILD_JOBS}" ${BUILD_VERBOSE}
else # FIXME: finish gcc support for tgl
make sof -j "${BUILD_JOBS}" ${BUILD_VERBOSE}
if [ "$BUILD_ROM" = "yes" ]; then
make rom_dump ${BUILD_VERBOSE}
fi
fi

cd "$WORKDIR"
done
done # for platform in ...

# list all the images
ls -l build_*/*.ri
ls -l build_*/*.ri build_*/src/arch/xtensa/rom*.bin || true
ls -l build_*/sof

0 comments on commit 4a87d8c

Please sign in to comment.