1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #18341 from gschorcht/cpu/esp32/add_esp32c3_makefile_support

cpu/esp32: add ESP32-C3 support in makefiles
This commit is contained in:
benpicco 2022-07-21 08:04:42 +02:00 committed by GitHub
commit 8d42808f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
ifneq (,$(filter esp32,$(CPU_FAM)))
CPU_ARCH = xtensa
CPU_CORE = xtensa-lx6
else ifneq (,$(filter esp32c3,$(CPU_FAM)))
CPU_ARCH = rv32
CPU_CORE = rv32imc
else
$(error Unkwnown ESP32x SoC variant (family))
endif

View File

@ -22,7 +22,7 @@ include $(RIOTCPU)/esp_common/Makefile.include
ifeq (xtensa,$(CPU_ARCH))
TARGET_ARCH ?= xtensa-$(CPU_FAM)-elf
else ifeq (riscv_esp32,$(CPU_ARCH))
else ifeq (rv32,$(CPU_ARCH))
TARGET_ARCH ?= riscv32-esp-elf
else
$(error Unkwnown ESP32x SoC architecture)

View File

@ -25,7 +25,7 @@ ifeq (xtensa,$(CPU_ARCH))
USEMODULE += xtensa
endif
ifeq (riscv_esp32,$(CPU_ARCH))
ifeq (rv32,$(CPU_ARCH))
USEMODULE += esp_riscv
endif

View File

@ -26,7 +26,7 @@ ifeq (xtensa,$(CPU_ARCH))
FEATURES_PROVIDED += arch_esp_xtensa
endif
ifeq (riscv_esp32,$(CPU_ARCH))
ifeq (rv32,$(CPU_ARCH))
FEATURES_PROVIDED += arch_esp_riscv
endif