mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(wifi): avoid compiling components related to wifi when wifi is not supported
This commit is contained in:
@@ -4,6 +4,15 @@ if(${target} STREQUAL "linux")
|
||||
return() # This component is not supported by the POSIX/Linux simulator
|
||||
endif()
|
||||
|
||||
if( NOT CONFIG_ESP_WIFI_ENABLED
|
||||
AND NOT CONFIG_ESP_HOST_WIFI_ENABLED
|
||||
AND NOT CMAKE_BUILD_EARLY_EXPANSION )
|
||||
# This component provides only "esp_provisioning" headers if WiFi not enabled
|
||||
# (implementation supported optionally in a managed component esp_wifi_remote)
|
||||
idf_component_register(INCLUDE_DIRS include)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(srcs "src/wifi_config.c"
|
||||
"src/wifi_scan.c"
|
||||
"src/wifi_ctrl.c"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
menu "Wi-Fi Provisioning Manager"
|
||||
|
||||
visible if (SOC_WIFI_SUPPORTED || SOC_WIRELESS_HOST_SUPPORTED)
|
||||
config WIFI_PROV_SCAN_MAX_ENTRIES
|
||||
int "Max Wi-Fi Scan Result Entries"
|
||||
default 16
|
||||
|
||||
Reference in New Issue
Block a user