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:
parent
9e47872a59
commit
7f30bf2aef
7
cpu/esp32/vendor/esp-idf/Makefile
vendored
7
cpu/esp32/vendor/esp-idf/Makefile
vendored
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user