From 5bdba861c46f874cbc91f35a1f4cb828cc83e95e Mon Sep 17 00:00:00 2001 From: Yong Zhi Date: Mon, 30 Mar 2020 11:17:14 -0500 Subject: [PATCH] getting_started: Add build documenation for ICL and JSL+ All support is already in place so add instructions for completeness. Signed-off-by: Yong Zhi --- .../build-guide/build-from-scratch.rst | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/getting_started/build-guide/build-from-scratch.rst b/getting_started/build-guide/build-from-scratch.rst index 96b7cb81..2cdf06bf 100644 --- a/getting_started/build-guide/build-from-scratch.rst +++ b/getting_started/build-guide/build-from-scratch.rst @@ -8,7 +8,7 @@ Build SOF from scratch :depth: 3 You may boot and test |SOF| on a target machine or VM. Current target -Intel platforms include: |BYT|, |CHT|, |HSW|, |BDW|, |APL|, and |CNL|. +Intel platforms include: |BYT|, |CHT|, |HSW|, |BDW|, |APL|, |CNL|, |ICL| and |JSL|. Support also exists for NXP i.MX8/i.MX8X/i.MX8M platforms. @@ -132,7 +132,7 @@ Build cross-compiler -------------------- Build the xtensa cross compiler with crosstool-ng for Intel |BYT|, -|CHT|, |HSW|, |BDW|, |APL|, |CNL| platforms and NXP i.MX8/i.MX8X/i.MX8M +|CHT|, |HSW|, |BDW|, |APL|, |CNL|, |ICL|, |JSL| platforms and NXP i.MX8/i.MX8X/i.MX8M platforms. Clone both repos and check out the sof-gcc8.1 branch. @@ -171,7 +171,7 @@ platforms. #Apollo Lake cp config-apl-gcc8.1-gdb8.1 .config ./ct-ng build - #Cannon Lake + #Cannon Lake, Ice Lake and Jasper Lake cp config-cnl-gcc8.1-gdb8.1 .config ./ct-ng build #i.MX8/i.MX8X @@ -202,6 +202,8 @@ Copy all five cross-compiler toolchains to ~/work/sof/. |BYT| and |CHT| share the same cross compiler toolchain: xtensa-byt-elf + |CNL|, |ICL| and |JSL| share the same cross compiler toolchain: xtensa-cnl-elf + i.MX8 and i.MX8X share the same cross compiler toolchain: xtensa-imx-elf Add these compilers to your PATH variable. @@ -243,7 +245,7 @@ Build and install the headers for each platform. make make install rm -fr rm etc/config.cache - #Cannon Lake + #Cannon Lake, Ice Lake and Jasper Lake ./configure --target=xtensa-cnl-elf --prefix=/home/$USER/work/sof/xtensa-root make make install @@ -384,6 +386,24 @@ for |CNL|: make cannonlake_defconfig make bin -j4 +for |ICL|: + +.. code-block:: bash + + mkdir build_icl && cd build_icl + cmake -DTOOLCHAIN=xtensa-cnl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-cnl-elf .. + make icelake_defconfig + make bin -j4 + +for |JSL|: + +.. code-block:: bash + + mkdir build_jsl && cd build_jsl + cmake -DTOOLCHAIN=xtensa-cnl-elf -DROOT_DIR=`pwd`/../../xtensa-root/xtensa-cnl-elf .. + make jasperlake_defconfig + make bin -j4 + for i.MX8: .. code-block:: bash