Skip to content

Commit 4be8b3a

Browse files
sylvioalvesstephanosio
authored andcommitted
espressif: add esp32s3 toolchain files
This brings ESP32-S3 overlays, CI and configurations. Overlay URL: https://github.com/espressif/xtensa-overlays/tree/master/xtensa_esp32s3 commit: a5ab689f009c89712b0e9d4a3bb06e70b2931fcf Signed-off-by: Sylvio Alves <[email protected]>
1 parent a8d37ce commit 4be8b3a

File tree

14 files changed

+89622
-1
lines changed

14 files changed

+89622
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ on:
5151
- x86_64-zephyr-elf
5252
- xtensa-espressif_esp32_zephyr-elf
5353
- xtensa-espressif_esp32s2_zephyr-elf
54+
- xtensa-espressif_esp32s3_zephyr-elf
5455
- xtensa-intel_apl_adsp_zephyr-elf
5556
- xtensa-intel_s1000_zephyr-elf
5657
- xtensa-nxp_imx_adsp_zephyr-elf
@@ -157,6 +158,7 @@ jobs:
157158
x86_64-zephyr-elf) build_target_x86_64_zephyr_elf="y";;
158159
xtensa-espressif_esp32_zephyr-elf) build_target_xtensa_espressif_esp32_zephyr_elf="y";;
159160
xtensa-espressif_esp32s2_zephyr-elf) build_target_xtensa_espressif_esp32s2_zephyr_elf="y";;
161+
xtensa-espressif_esp32s3_zephyr-elf) build_target_xtensa_espressif_esp32s3_zephyr_elf="y";;
160162
xtensa-intel_apl_adsp_zephyr-elf) build_target_xtensa_intel_apl_adsp_zephyr_elf="y";;
161163
xtensa-intel_s1000_zephyr-elf) build_target_xtensa_intel_s1000_zephyr_elf="y";;
162164
xtensa-nxp_imx_adsp_zephyr-elf) build_target_xtensa_nxp_imx_adsp_zephyr_elf="y";;
@@ -191,6 +193,7 @@ jobs:
191193
build_target_x86_64_zephyr_elf="y"
192194
build_target_xtensa_espressif_esp32_zephyr_elf="y"
193195
build_target_xtensa_espressif_esp32s2_zephyr_elf="y"
196+
build_target_xtensa_espressif_esp32s3_zephyr_elf="y"
194197
build_target_xtensa_intel_apl_adsp_zephyr_elf="y"
195198
build_target_xtensa_intel_s1000_zephyr_elf="y"
196199
build_target_xtensa_nxp_imx_adsp_zephyr_elf="y"
@@ -265,6 +268,7 @@ jobs:
265268
[ "${build_target_x86_64_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"x86_64-zephyr-elf",'
266269
[ "${build_target_xtensa_espressif_esp32_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32_zephyr-elf",'
267270
[ "${build_target_xtensa_espressif_esp32s2_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32s2_zephyr-elf",'
271+
[ "${build_target_xtensa_espressif_esp32s3_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32s3_zephyr-elf",'
268272
[ "${build_target_xtensa_intel_apl_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_apl_adsp_zephyr-elf",'
269273
[ "${build_target_xtensa_intel_s1000_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_s1000_zephyr-elf",'
270274
[ "${build_target_xtensa_nxp_imx_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_imx_adsp_zephyr-elf",'
@@ -1510,6 +1514,9 @@ jobs:
15101514
xtensa-espressif_esp32s2_zephyr-elf)
15111515
PLATFORM_ARGS+="-p esp32s2_saola "
15121516
;;
1517+
xtensa-espressif_esp32s3_zephyr-elf)
1518+
PLATFORM_ARGS+="-p esp32s3_devkitc "
1519+
;;
15131520
xtensa-intel_apl_adsp_zephyr-elf)
15141521
PLATFORM_ARGS+="-p intel_adsp_cavs15 "
15151522
;;

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ 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_s1000,
16-
nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2)
16+
nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2,
17+
espressif_esp32s3)
1718

1819
The following host tools are available as part of the Zephyr SDK:
1920

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
CT_CONFIG_VERSION="3"
2+
CT_EXPERIMENTAL=y
3+
# CT_PREFIX_DIR_RO is not set
4+
# CT_LOG_PROGRESS_BAR is not set
5+
CT_TARGET_CFLAGS="-mlongcalls -ftls-model=local-exec"
6+
CT_ARCH_XTENSA=y
7+
CT_XTENSA_CUSTOM=y
8+
CT_OVERLAY_NAME="espressif_esp32s3"
9+
CT_OVERLAY_LOCATION="./overlays"
10+
CT_TARGET_VENDOR="espressif_esp32s3_zephyr"
11+
CT_BINUTILS_SRC_CUSTOM=y
12+
CT_BINUTILS_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/binutils"
13+
CT_NEWLIB_SRC_CUSTOM=y
14+
CT_NEWLIB_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"
15+
CT_LIBC_NEWLIB_TARGET_CFLAGS="-O2"
16+
# CT_LIBC_NEWLIB_ENABLE_TARGET_OPTSPACE is not set
17+
CT_LIBC_NEWLIB_IO_C99FMT=y
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=y
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_GCC_SRC_CUSTOM=y
31+
CT_GCC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/gcc"
32+
CT_CC_GCC_EXTRA_CONFIG_ARRAY="--with-gnu-ld --with-gnu-as --enable-initfini-array"
33+
CT_CC_GCC_CONFIG_TLS=n
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_COMP_LIBS_NEWLIB_NANO=y
39+
CT_NEWLIB_NANO_SRC_CUSTOM=y
40+
CT_NEWLIB_NANO_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/newlib"
41+
CT_NEWLIB_NANO_GCC_LIBSTDCXX=y
42+
CT_NEWLIB_NANO_INSTALL_IN_TARGET=y
43+
# CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set
44+
# CT_LIBC_NEWLIB_NANO_IO_LL is not set
45+
CT_LIBC_NEWLIB_NANO_IO_FLOAT=y
46+
# CT_LIBC_NEWLIB_NANO_IO_LDBL is not set
47+
# CT_LIBC_NEWLIB_NANO_IO_POS_ARGS is not set
48+
CT_LIBC_NEWLIB_NANO_FVWRITE_IN_STREAMIO=y
49+
# CT_LIBC_NEWLIB_NANO_UNBUF_STREAM_OPT is not set
50+
# CT_LIBC_NEWLIB_NANO_FSEEK_OPTIMIZATION is not set
51+
CT_LIBC_NEWLIB_NANO_DISABLE_SUPPLIED_SYSCALLS=y
52+
# CT_LIBC_NEWLIB_NANO_REGISTER_FINI is not set
53+
CT_LIBC_NEWLIB_NANO_ATEXIT_DYNAMIC_ALLOC=y
54+
CT_LIBC_NEWLIB_NANO_GLOBAL_ATEXIT=y
55+
CT_LIBC_NEWLIB_NANO_LITE_EXIT=y
56+
CT_LIBC_NEWLIB_NANO_REENT_SMALL=y
57+
CT_LIBC_NEWLIB_NANO_MULTITHREAD=y
58+
CT_LIBC_NEWLIB_NANO_RETARGETABLE_LOCKING=y
59+
CT_LIBC_NEWLIB_NANO_EXTRA_SECTIONS=y
60+
# CT_LIBC_NEWLIB_NANO_WIDE_ORIENT is not set
61+
CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE=y
62+
# CT_LIBC_NEWLIB_NANO_LTO is not set
63+
CT_LIBC_NEWLIB_NANO_NANO_MALLOC=y
64+
CT_LIBC_NEWLIB_NANO_NANO_FORMATTED_IO=y
65+
CT_COMP_LIBS_PICOLIBC=y
66+
CT_PICOLIBC_SRC_CUSTOM=y
67+
CT_PICOLIBC_CUSTOM_LOCATION="${GITHUB_WORKSPACE}/picolibc"
68+
CT_LIBC_PICOLIBC_GLOBAL_ATEXIT=y
69+
CT_LIBC_PICOLIBC_EXTRA_SECTIONS=y
70+
CT_LIBC_PICOLIBC_EXTRA_CONFIG_ARRAY="-Dthread-local-storage=auto -Derrno-function=zephyr -Dsysroot-install=true -Dsysroot-install-skip-checks=true"

0 commit comments

Comments
 (0)