2019-12-12 13:46:20 +01:00
|
|
|
# additional modules dependencies
|
|
|
|
|
|
|
|
# each device has SPI flash memory, but it has to be enabled explicitly
|
2019-12-13 07:50:53 +01:00
|
|
|
ifneq (,$(filter esp_spiffs,$(USEMODULE)))
|
2019-12-12 13:46:20 +01:00
|
|
|
USEMODULE += spiffs
|
|
|
|
endif
|
|
|
|
|
2019-12-13 07:50:53 +01:00
|
|
|
ifneq (,$(filter esp_freertos,$(USEMODULE)))
|
|
|
|
USEMODULE += esp_freertos_common
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter esp_now,$(USEMODULE)))
|
2019-12-12 13:46:20 +01:00
|
|
|
USEMODULE += esp_wifi_any
|
|
|
|
endif
|
|
|
|
|
2019-12-13 07:50:53 +01:00
|
|
|
ifneq (,$(filter esp_wifi,$(USEMODULE)))
|
2019-12-12 13:46:20 +01:00
|
|
|
USEMODULE += esp_wifi_any
|
|
|
|
USEMODULE += netdev_eth
|
|
|
|
endif
|
|
|
|
|
2019-12-13 07:50:53 +01:00
|
|
|
ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
|
2019-12-12 13:46:20 +01:00
|
|
|
USEMODULE += netopt
|
|
|
|
USEMODULE += xtimer
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter esp_idf_heap,$(USEMODULE)))
|
|
|
|
LINKFLAGS += -Wl,-wrap,_malloc_r
|
|
|
|
LINKFLAGS += -Wl,-wrap,_calloc_r
|
|
|
|
LINKFLAGS += -Wl,-wrap,_realloc_r
|
|
|
|
LINKFLAGS += -Wl,-wrap,_free_r
|
|
|
|
endif
|