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:
parent
0ddb6022f3
commit
2ce80685c6
7
dist/tools/esptools/export.sh
vendored
7
dist/tools/esptools/export.sh
vendored
@ -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
|
||||
|
7
dist/tools/esptools/install.sh
vendored
7
dist/tools/esptools/install.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user