Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/esp32: add ESP32-C3 support in makefiles #18341

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cpu/esp32/Makefile.features
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion cpu/esp32/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cpu/esp_common/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ifeq (xtensa,$(CPU_ARCH))
USEMODULE += xtensa
endif

ifeq (riscv_esp32,$(CPU_ARCH))
ifeq (rv32,$(CPU_ARCH))
USEMODULE += esp_riscv
endif

Expand Down
2 changes: 1 addition & 1 deletion cpu/esp_common/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down