1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:32:45 +01:00

dist/tools/esptools: add ESP32-C3 toolchain

This commit is contained in:
Gunar Schorcht 2022-03-21 02:23:44 +01:00
parent 0ddb6022f3
commit 2ce80685c6
2 changed files with 10 additions and 4 deletions

View File

@ -24,6 +24,9 @@ export_arch()
esp32)
TARGET_ARCH="xtensa-esp32-elf"
;;
esp32c3)
TARGET_ARCH="riscv32-esp-elf"
;;
*)
echo "Unknown architecture $1"
exit 1
@ -71,9 +74,9 @@ export_qemu()
if [ -z $1 ]; then
echo "Usage: export.sh <tool>"
echo "tool = all | esp32 | openocd | qemu"
echo "tool = all | esp32 | esp32c3 | openocd | qemu"
elif [ "$1" = "all" ]; then
ARCH_ALL="esp32"
ARCH_ALL="esp32 esp32c3"
for arch in ${ARCH_ALL}; do
export_arch $arch
done

View File

@ -82,6 +82,9 @@ install_arch()
esp32)
TARGET_ARCH="xtensa-esp32-elf"
;;
esp32c3)
TARGET_ARCH="riscv32-esp-elf"
;;
*)
echo "error: Unknown architecture $1"
exit 1
@ -152,10 +155,10 @@ install_qemu()
if [ -z $1 ]; then
echo "Usage: install.sh <tool>"
echo "tool = all | esp32 | openocd | qemu"
echo "tool = all | esp32 | esp32c3 | openocd | qemu"
exit 1
elif [ "$1" = "all" ]; then
ARCH_ALL="esp32"
ARCH_ALL="esp32 esp32c3"
for arch in ${ARCH_ALL}; do
install_arch $arch
done