Skip to content

Commit deeb62e

Browse files
lrgirdwogalak
authored andcommitted
xtensa: add config nxp_imx8m_adsp
This adds the config to build the toolchain for the Audio DSP on the NXP IMX8M platform. The overlay is taken from the sof-gcc9x branch, commit f16cbc7dd794d0292be3613d6eeac986841f5492 The config has the selections of tools and their versions from the Sound Open Firmware project. Signed-off-by: Liam Girdwood <[email protected]>
1 parent 9d39988 commit deeb62e

File tree

7 files changed

+1979
-1
lines changed

7 files changed

+1979
-1
lines changed

.shippable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
- TARGET=xtensa_intel_byt_adsp
2020
- TARGET=xtensa_intel_s1000
2121
- TARGET=xtensa_nxp_imx_adsp
22+
- TARGET=xtensa_nxp_imx8m_adsp
2223
- TARGET="tools"
2324

2425
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Currently we build the following toolchains:
1515
- riscv64
1616
- sparc
1717
- xtensa (sample_controller, intel_apl_adsp, intel_s1000, intel_bdw_adsp,
18-
intel_byt_adsp, nxp_imx_adsp)
18+
intel_byt_adsp, nxp_imx_adsp, nxp_imx8m_adsp)
1919

2020
To build for any of the above, run:
2121

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_OBSOLETE=y
3+
CT_EXPERIMENTAL=y
4+
CT_LOCAL_TARBALLS_DIR="${OUTPUT_DIR:-${HOME}/x-tools}/sources"
5+
# CT_PREFIX_DIR_RO is not set
6+
CT_PATCH_BUNDLED_LOCAL=y
7+
CT_LOCAL_PATCH_DIR="${CT_TOP_DIR}/../../patches"
8+
# CT_LOG_PROGRESS_BAR is not set
9+
CT_ARCH_XTENSA=y
10+
CT_XTENSA_CUSTOM=y
11+
# CT_ARCH_USE_MMU is not set
12+
CT_OVERLAY_NAME="nxp_imx8m_adsp"
13+
CT_OVERLAY_LOCATION="./overlays"
14+
CT_TARGET_VENDOR="zephyr"
15+
CT_NEWLIB_SRC_DEVEL=y
16+
CT_NEWLIB_DEVEL_URL="https://github.com/jcmvbkbc/newlib-xtensa.git"
17+
CT_NEWLIB_DEVEL_BRANCH="xtensa"
18+
CT_LIBC_NEWLIB_IO_LL=y
19+
CT_LIBC_NEWLIB_IO_FLOAT=y
20+
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
21+
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
22+
CT_LIBC_NEWLIB_GLOBAL_ATEXIT=y
23+
CT_LIBC_NEWLIB_LITE_EXIT=y
24+
# CT_LIBC_NEWLIB_MULTITHREAD is not set
25+
CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y
26+
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
27+
# CT_LIBC_NEWLIB_NANO_MALLOC is not set
28+
# CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set
29+
CT_LIBC_NEWLIB_EXTRA_SECTIONS=y
30+
CT_LIBC_NANO_NEWLIB=y
31+
CT_LIBC_NANO_NEWLIB_IO_FLOAT=y
32+
# CT_LIBC_NANO_NEWLIB_FSEEK_OPTIMIZATION is not set
33+
CT_LIBC_NANO_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
34+
CT_LIBC_NANO_NEWLIB_GLOBAL_ATEXIT=y
35+
CT_LIBC_NANO_NEWLIB_LITE_EXIT=y
36+
# CT_LIBC_NANO_NEWLIB_MULTITHREAD is not set
37+
CT_LIBC_NANO_NEWLIB_RETARGETABLE_LOCKING=y
38+
# CT_LIBC_NANO_NEWLIB_WIDE_ORIENT is not set
39+
CT_LIBC_NANO_NEWLIB_NANO_MALLOC=y
40+
CT_LIBC_NANO_NEWLIB_NANO_FORMATTED_IO=y
41+
CT_LIBC_NANO_NEWLIB_EXTRA_SECTIONS=y
42+
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
43+
CT_CC_LANG_CXX=y
44+
CT_CC_GCC_LIBSTDCXX_NANO=y
45+
CT_DEBUG_GDB=y
46+
CT_GDB_V_8_3=y
47+
CT_ISL_V_0_18=y
48+
CT_LIBICONV_NEEDED=y

go.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ for t in ${TARGETS}; do
132132
xtensa_nxp_imx_adsp)
133133
patch -p1 -N < ${GITDIR}/patches/xtensa/hal/nxp_imx_adsp/0001-Adding-IMX8-DSP-config-files.patch
134134
;;
135+
xtensa_nxp_imx8m_adsp)
136+
patch -p1 -N < ${GITDIR}/patches/xtensa/hal/nxp_imx8m_adsp/0001-Adding-IMX8M-DSP-config-files.patch
137+
;;
135138
xtensa_intel_s1000)
136139
patch -p1 -N < ${GITDIR}/patches/xtensa/hal/intel_s1000/0001-Add-Sue-Creek-config-files.patch
137140
;;
390 KB
Binary file not shown.

0 commit comments

Comments
 (0)