Skip to content

Commit

Permalink
cpu/esp_common: add module esp_riscv to makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jun 26, 2022
1 parent ccdadf2 commit 9f37551
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpu/esp_common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ ifneq (,$(filter esp_xtensa,$(USEMODULE)))
DIRS += esp-xtensa
endif

ifneq (,$(filter esp_riscv,$(USEMODULE)))
DIRS += esp-riscv
endif

include $(RIOTBASE)/Makefile.base
4 changes: 4 additions & 0 deletions cpu/esp_common/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ ifeq (xtensa,$(CPU_ARCH))
USEMODULE += xtensa
endif

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

# Features used by ESP*

FEATURES_REQUIRED += newlib
Expand Down
4 changes: 4 additions & 0 deletions cpu/esp_common/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ ifeq (xtensa,$(CPU_ARCH))
FEATURES_PROVIDED += arch_esp_xtensa
endif

ifeq (riscv_esp32,$(CPU_ARCH))
FEATURES_PROVIDED += arch_esp_riscv
endif

FEATURES_CONFLICT += esp_wifi_ap:esp_now
FEATURES_CONFLICT_MSG += "ESP_NOW and ESP_WIFI_AP can not be used at the same time."

Expand Down
3 changes: 3 additions & 0 deletions cpu/esp_common/esp-riscv/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MODULE=esp_riscv

include $(RIOTBASE)/Makefile.base

0 comments on commit 9f37551

Please sign in to comment.