Skip to content

Commit ba9467e

Browse files
committed
toolchain: Add ESP32S2 config and overlay
Add all necessary changes to allow ESP32S2 toolchain integration. Overlay URL: https://github.com/espressif/xtensa-overlays/tree/master/xtensa_esp32s2 commit: ac00ec5abf21102578d9afde22ffffd46929feaf Signed-off-by: Sylvio Alves <[email protected]>
1 parent 2910099 commit ba9467e

File tree

3 files changed

+67
-1
lines changed

3 files changed

+67
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The toolchains for the following target architectures are supported:
1313
- RISC-V (32-bit and 64-bit; RV32I, RV32E, RV64I)
1414
- x86 (32-bit and 64-bit)
1515
- Xtensa (sample_controller, intel_apl_adsp, intel_bdw_adsp, intel_byt_adsp,
16-
intel_s1000, nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32)
16+
intel_s1000, nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2)
1717

1818
The following host tools are available as part of the Zephyr SDK:
1919

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_EXPERIMENTAL=y
3+
CT_LOCAL_TARBALLS_DIR="${CT_PREFIX:-${HOME}/x-tools}/sources"
4+
# CT_PREFIX_DIR_RO is not set
5+
# CT_LOG_PROGRESS_BAR is not set
6+
CT_TARGET_CFLAGS="-mlongcalls"
7+
CT_ARCH_XTENSA=y
8+
CT_XTENSA_CUSTOM=y
9+
CT_OVERLAY_NAME="espressif_esp32s2"
10+
CT_OVERLAY_LOCATION="./overlays"
11+
CT_TARGET_VENDOR="espressif_esp32s2_zephyr"
12+
CT_BINUTILS_SRC_CUSTOM=y
13+
CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils"
14+
CT_NEWLIB_SRC_CUSTOM=y
15+
CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"
16+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2"
17+
# CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set
18+
CT_LIBC_NEWLIB_IO_C99FMT=y
19+
CT_LIBC_NEWLIB_IO_LL=y
20+
CT_LIBC_NEWLIB_IO_FLOAT=y
21+
# CT_LIBC_NEWLIB_FSEEK_OPTIMIZATION is not set
22+
CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y
23+
CT_LIBC_NEWLIB_GLOBAL_ATEXIT=y
24+
CT_LIBC_NEWLIB_LITE_EXIT=y
25+
CT_LIBC_NEWLIB_MULTITHREAD=y
26+
CT_LIBC_NEWLIB_RETARGETABLE_LOCKING=y
27+
# CT_LIBC_NEWLIB_WIDE_ORIENT is not set
28+
# CT_LIBC_NEWLIB_NANO_MALLOC is not set
29+
# CT_LIBC_NEWLIB_NANO_FORMATTED_IO is not set
30+
CT_LIBC_NEWLIB_EXTRA_SECTIONS=y
31+
CT_GCC_SRC_CUSTOM=y
32+
CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc"
33+
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
34+
CT_CC_LANG_CXX=y
35+
CT_DEBUG_GDB=y
36+
CT_GDB_SRC_CUSTOM=y
37+
CT_GDB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gdb"
38+
CT_GDB_CROSS_PYTHON_BINARY="python3.8"
39+
CT_GDB_CROSS_BUILD_NO_PYTHON=y
40+
CT_COMP_LIBS_NEWLIB_NANO=y
41+
CT_NEWLIB_NANO_SRC_CUSTOM=y
42+
CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"
43+
CT_NEWLIB_NANO_GCC_LIBSTDCXX=y
44+
CT_NEWLIB_NANO_INSTALL_IN_TARGET=y
45+
# CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set
46+
# CT_LIBC_NEWLIB_NANO_IO_LL is not set
47+
CT_LIBC_NEWLIB_NANO_IO_FLOAT=y
48+
# CT_LIBC_NEWLIB_NANO_IO_LDBL is not set
49+
# CT_LIBC_NEWLIB_NANO_IO_POS_ARGS is not set
50+
CT_LIBC_NEWLIB_NANO_FVWRITE_IN_STREAMIO=y
51+
# CT_LIBC_NEWLIB_NANO_UNBUF_STREAM_OPT is not set
52+
# CT_LIBC_NEWLIB_NANO_FSEEK_OPTIMIZATION is not set
53+
CT_LIBC_NEWLIB_NANO_DISABLE_SUPPLIED_SYSCALLS=y
54+
# CT_LIBC_NEWLIB_NANO_REGISTER_FINI is not set
55+
CT_LIBC_NEWLIB_NANO_ATEXIT_DYNAMIC_ALLOC=y
56+
CT_LIBC_NEWLIB_NANO_GLOBAL_ATEXIT=y
57+
CT_LIBC_NEWLIB_NANO_LITE_EXIT=y
58+
CT_LIBC_NEWLIB_NANO_REENT_SMALL=y
59+
CT_LIBC_NEWLIB_NANO_MULTITHREAD=y
60+
CT_LIBC_NEWLIB_NANO_RETARGETABLE_LOCKING=y
61+
CT_LIBC_NEWLIB_NANO_EXTRA_SECTIONS=y
62+
# CT_LIBC_NEWLIB_NANO_WIDE_ORIENT is not set
63+
CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
64+
# CT_LIBC_NEWLIB_NANO_LTO is not set
65+
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
66+
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
67.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)