1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32/Makefile.dep

78 lines
2.0 KiB
Makefile
Raw Normal View History

2018-10-08 12:20:49 +02:00
# additional modules dependencies
2019-12-12 13:46:20 +01:00
include $(RIOTCPU)/esp_common/Makefile.dep
ifneq (,$(filter cpp,$(FEATURES_USED)))
2019-12-12 13:46:20 +01:00
USEMODULE += pthread
BASELIBS += -lstdc++
endif
2018-10-08 12:20:49 +02:00
ifneq (,$(filter esp_eth,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
USEMODULE += esp_freertos
USEMODULE += esp_idf_eth
USEMODULE += esp_idf_eth_phy
USEMODULE += netdev_eth
USEMODULE += netopt
USEMODULE += xtimer
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/ethernet
INCLUDES += -I$(ESP32_SDK_DIR)/components/ethernet/include
2018-10-08 12:20:49 +02:00
endif
ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
# add additional modules used for any WiFi interface
USEMODULE += esp_freertos
USEMODULE += esp_idf_heap
USEMODULE += esp_idf_nvs_flash
USEMODULE += esp_idf_wpa_supplicant_crypto
USEMODULE += esp_idf_wpa_supplicant_port
2018-10-08 12:20:49 +02:00
endif
2018-11-10 14:14:49 +01:00
ifneq (,$(filter esp_idf_nvs_flash,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
# add additional modules required by esp_idf_nvs_flash
USEMODULE += mtd
USEMODULE += pthread
2018-11-10 14:14:49 +01:00
endif
ifneq (,$(filter periph_rtc,$(USEMODULE)))
FEATURES_OPTIONAL += esp_rtc_timer_32k
endif
ifneq (,$(filter esp_rtc_timer_32k,$(FEATURES_USED)))
USEMODULE += esp_rtc_timer_32k
endif
ifneq (,$(filter esp_rtc_timer_32k,$(USEMODULE)))
USEMODULE += esp_rtc_timer
endif
ifneq (,$(filter periph_i2c,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
ifneq (,$(filter esp_i2c_hw,$(USEMODULE)))
USEMODULE += core_thread_flags
USEMODULE += xtimer
USEMODULE += periph_i2c_hw
else
# PLEASE NOTE: because of the very poor and faulty hardware implementation
# we use software implementation by default for the moment (if module
# esp_i2c_hw is not explicitly used)
USEMODULE += esp_i2c_sw
USEMODULE += periph_i2c_sw
endif
2018-10-08 12:20:49 +02:00
endif
2019-12-12 13:46:20 +01:00
ifneq (,$(filter esp_spi_ram,$(DISABLE_MODULE)))
USEMODULE := $(filter-out esp_spi_ram,$(USEMODULE))
2018-11-10 14:14:49 +01:00
endif
ifneq (,$(filter mtd,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
USEMODULE += esp_idf_spi_flash
2018-10-08 12:20:49 +02:00
endif
ifneq (,$(filter ndn-riot,$(USEPKG)))
2019-12-12 13:46:20 +01:00
USEMODULE += crypto
USEMODULE += cipher_modes
2018-10-08 12:20:49 +02:00
endif
ifneq (,$(filter shell,$(USEMODULE)))
2019-12-12 13:46:20 +01:00
USEMODULE += ps
endif