Skip to content

Commit a7b7489

Browse files
TempoTianespressif-bot
authored andcommitted
bugfix(periph_wifi): Fixed esp_hosted linked without use on esp32p4
- Added compile option to not compile wifi lib when not used - Remove unused yml Closes #1518
1 parent 1736c56 commit a7b7489

File tree

21 files changed

+6
-201
lines changed

21 files changed

+6
-201
lines changed

components/esp_peripherals/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ list(APPEND COMPONENT_SRCS ./esp_peripherals.c
1818
./periph_is31fl3216.c
1919
./periph_led.c
2020
./periph_spiffs.c
21-
./periph_wifi.c
2221
./periph_aw2013.c
2322
./periph_ws2812.c
2423
./periph_lcd.c
@@ -30,6 +29,10 @@ list(APPEND COMPONENT_SRCS ./esp_peripherals.c
3029
./lib/tca9554/tca9554.c
3130
./lib/gpio_isr/gpio_isr.c)
3231

32+
if (CONFIG_SOC_WIFI_SUPPORTED OR CONFIG_ESP_HOSTED_ENABLED)
33+
list(APPEND COMPONENT_SRCS ./periph_wifi.c)
34+
endif()
35+
3336
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_LESS "5.3")
3437
list(APPEND COMPONENT_SRCS ./driver/i2c_bus/i2c_bus.c)
3538
else()

components/wifi_service/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ if (idf_version VERSION_GREATER_EQUAL "5.0")
1111
list(APPEND COMPONENT_REQUIRES esp_timer)
1212
endif()
1313

14+
if (CONFIG_SOC_WIFI_SUPPORTED OR CONFIG_ESP_HOSTED_ENABLED)
1415
list(APPEND COMPONENT_SRCS src/esp_wifi_setting.c
1516
src/wifi_service.c
1617
src/wifi_ssid_manager.c
1718
smart_config/smart_config.c
1819
blufi_config/blufi_config.c
1920
blufi_config/blufi_security.c)
21+
endif()
2022

2123
IF (CONFIG_IDF_TARGET STREQUAL "esp32c3" OR CONFIG_IDF_TARGET STREQUAL "esp32c6" OR CONFIG_IDF_TARGET STREQUAL "esp32p4" OR CONFIG_IDF_TARGET STREQUAL "esp32c5")
2224
register_component()

examples/advanced_examples/aec/main/idf_component.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/advanced_examples/algorithm/main/idf_component.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/advanced_examples/downmix_pipeline/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/advanced_examples/nvs_dispatcher/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/audio_processing/pipeline_alc/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/audio_processing/pipeline_equalizer/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/get-started/play_mp3_control/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/player/pipeline_embed_flash_tone/main/idf_component.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)