cpu/esp32: optimizing compilation of subdirs

A number of subdirectories in cpu/esp32/vendor/esp-idf have to be compiled ony, when according modules are required by the application.
This commit is contained in:
Gunar Schorcht 2019-08-06 08:02:47 +02:00
parent 9e47872a59
commit 7f30bf2aef

View File

@ -2,13 +2,16 @@ MODULE=esp_idf
DIRS += driver DIRS += driver
DIRS += esp32 DIRS += esp32
DIRS += heap
DIRS += soc DIRS += soc
DIRS += spi_flash DIRS += spi_flash
DIRS += wpa_supplicant
ifneq (,$(filter esp_idf_heap,$(USEMODULE)))
DIRS += heap
endif
ifneq (,$(filter esp_wifi_any,$(USEMODULE))) ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
DIRS += nvs_flash DIRS += nvs_flash
DIRS += wpa_supplicant
INCLUDES += -I$(ESP32_SDK_DIR)/components/smartconfig_ack/include INCLUDES += -I$(ESP32_SDK_DIR)/components/smartconfig_ack/include
endif endif