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:
commit
8d42808f52
@ -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
|
||||
|
@ -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)
|
||||
|
@ -25,7 +25,7 @@ ifeq (xtensa,$(CPU_ARCH))
|
||||
USEMODULE += xtensa
|
||||
endif
|
||||
|
||||
ifeq (riscv_esp32,$(CPU_ARCH))
|
||||
ifeq (rv32,$(CPU_ARCH))
|
||||
USEMODULE += esp_riscv
|
||||
endif
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user