From c2b62249fb6c7295ca9817d9636044663f365baa Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 1 May 2022 01:34:06 +0200 Subject: [PATCH] dist/tools: add toolchain installtion for ESP32-S3 --- dist/tools/esptools/export.sh | 7 +++++-- dist/tools/esptools/install.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dist/tools/esptools/export.sh b/dist/tools/esptools/export.sh index d25716683d..261f9289a5 100755 --- a/dist/tools/esptools/export.sh +++ b/dist/tools/esptools/export.sh @@ -27,6 +27,9 @@ export_arch() esp32c3) TARGET_ARCH="riscv32-esp-elf" ;; + esp32s3) + TARGET_ARCH="xtensa-esp32s3-elf" + ;; *) echo "Unknown architecture $1" exit 1 @@ -74,9 +77,9 @@ export_qemu() if [ -z $1 ]; then echo "Usage: export.sh " - echo "tool = all | esp32 | esp32c3 | openocd | qemu" + echo "tool = all | esp32 | esp32c3 | esp32s3 | openocd | qemu" elif [ "$1" = "all" ]; then - ARCH_ALL="esp32 esp32c3" + ARCH_ALL="esp32 esp32c3 esp32s3" for arch in ${ARCH_ALL}; do export_arch $arch done diff --git a/dist/tools/esptools/install.sh b/dist/tools/esptools/install.sh index 3eb3a4014d..b61abfc032 100755 --- a/dist/tools/esptools/install.sh +++ b/dist/tools/esptools/install.sh @@ -85,6 +85,9 @@ install_arch() esp32c3) TARGET_ARCH="riscv32-esp-elf" ;; + esp32s3) + TARGET_ARCH="xtensa-esp32s3-elf" + ;; *) echo "error: Unknown architecture $1" exit 1 @@ -155,10 +158,10 @@ install_qemu() if [ -z $1 ]; then echo "Usage: install.sh " - echo "tool = all | esp32 | esp32c3 | openocd | qemu" + echo "tool = all | esp32 | esp32c3 | esp32s3 | openocd | qemu" exit 1 elif [ "$1" = "all" ]; then - ARCH_ALL="esp32 esp32c3" + ARCH_ALL="esp32 esp32c3 esp32s3" for arch in ${ARCH_ALL}; do install_arch $arch done