Skip to content

Commit 22fb292

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 d20daf9 commit 22fb292

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
@@ -52,6 +52,7 @@ on:
5252
- x86_64-zephyr-elf
5353
- xtensa-espressif_esp32_zephyr-elf
5454
- xtensa-espressif_esp32s2_zephyr-elf
55+
- xtensa-espressif_esp32s3_zephyr-elf
5556
- xtensa-intel_apl_adsp_zephyr-elf
5657
- xtensa-intel_s1000_zephyr-elf
5758
- xtensa-nxp_imx_adsp_zephyr-elf
@@ -159,6 +160,7 @@ jobs:
159160
x86_64-zephyr-elf) build_target_x86_64_zephyr_elf="y";;
160161
xtensa-espressif_esp32_zephyr-elf) build_target_xtensa_espressif_esp32_zephyr_elf="y";;
161162
xtensa-espressif_esp32s2_zephyr-elf) build_target_xtensa_espressif_esp32s2_zephyr_elf="y";;
163+
xtensa-espressif_esp32s3_zephyr-elf) build_target_xtensa_espressif_esp32s3_zephyr_elf="y";;
162164
xtensa-intel_apl_adsp_zephyr-elf) build_target_xtensa_intel_apl_adsp_zephyr_elf="y";;
163165
xtensa-intel_s1000_zephyr-elf) build_target_xtensa_intel_s1000_zephyr_elf="y";;
164166
xtensa-nxp_imx_adsp_zephyr-elf) build_target_xtensa_nxp_imx_adsp_zephyr_elf="y";;
@@ -194,6 +196,7 @@ jobs:
194196
build_target_x86_64_zephyr_elf="y"
195197
build_target_xtensa_espressif_esp32_zephyr_elf="y"
196198
build_target_xtensa_espressif_esp32s2_zephyr_elf="y"
199+
build_target_xtensa_espressif_esp32s3_zephyr_elf="y"
197200
build_target_xtensa_intel_apl_adsp_zephyr_elf="y"
198201
build_target_xtensa_intel_s1000_zephyr_elf="y"
199202
build_target_xtensa_nxp_imx_adsp_zephyr_elf="y"
@@ -269,6 +272,7 @@ jobs:
269272
[ "${build_target_x86_64_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"x86_64-zephyr-elf",'
270273
[ "${build_target_xtensa_espressif_esp32_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32_zephyr-elf",'
271274
[ "${build_target_xtensa_espressif_esp32s2_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32s2_zephyr-elf",'
275+
[ "${build_target_xtensa_espressif_esp32s3_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-espressif_esp32s3_zephyr-elf",'
272276
[ "${build_target_xtensa_intel_apl_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_apl_adsp_zephyr-elf",'
273277
[ "${build_target_xtensa_intel_s1000_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-intel_s1000_zephyr-elf",'
274278
[ "${build_target_xtensa_nxp_imx_adsp_zephyr_elf}" == "y" ] && MATRIX_TARGETS+='"xtensa-nxp_imx_adsp_zephyr-elf",'
@@ -1518,6 +1522,9 @@ jobs:
15181522
xtensa-espressif_esp32s2_zephyr-elf)
15191523
PLATFORM_ARGS+="-p esp32s2_saola "
15201524
;;
1525+
xtensa-espressif_esp32s3_zephyr-elf)
1526+
PLATFORM_ARGS+="-p esp32s3_devkitc "
1527+
;;
15211528
xtensa-intel_apl_adsp_zephyr-elf)
15221529
PLATFORM_ARGS+="-p intel_adsp_cavs15 "
15231530
;;

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The toolchains for the following target architectures are supported:
1414
- RISC-V (32-bit and 64-bit; RV32I, RV32E, RV64I)
1515
- x86 (32-bit and 64-bit)
1616
- Xtensa (sample_controller, intel_apl_adsp, intel_s1000,
17-
nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2)
17+
nxp_imx_adsp, nxp_imx8m_adsp, espressif_esp32, espressif_esp32s2,
18+
espressif_esp32s3)
1819

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

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)