Skip to content

Commit

Permalink
Merge pull request RIOT-OS#18341 from gschorcht/cpu/esp32/add_esp32c3…
Browse files Browse the repository at this point in the history
…_makefile_support

cpu/esp32: add ESP32-C3 support in makefiles
  • Loading branch information
benpicco authored Jul 21, 2022
2 parents 4ef8b34 + 0645371 commit 8d42808
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
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

0 comments on commit 8d42808

Please sign in to comment.