Skip to content

Commit 2715330

Browse files
wqx6pull[bot]
authored andcommitted
ESP32: Fix the link issues for ieee802154 component and esp_eth component (#27140)
1 parent 89e27b7 commit 2715330

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

config/esp32/components/chip/CMakeLists.txt

+9-3
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,10 @@ endif()
371371
if(CONFIG_OPENTHREAD_ENABLED)
372372
idf_component_get_property(openthread_lib openthread COMPONENT_LIB)
373373
list(APPEND chip_libraries $<TARGET_FILE:${openthread_lib}>)
374-
375-
idf_component_get_property(ieee802154_lib ieee802154 COMPONENT_LIB)
376-
list(APPEND chip_libraries $<TARGET_FILE:${ieee802154_lib}>)
374+
if (CONFIG_IEEE802154_ENABLED)
375+
idf_component_get_property(ieee802154_lib ieee802154 COMPONENT_LIB)
376+
list(APPEND chip_libraries $<TARGET_FILE:${ieee802154_lib}>)
377+
endif()
377378
endif()
378379

379380
if((NOT CONFIG_USE_MINIMAL_MDNS) AND (CONFIG_ENABLE_WIFI_STATION OR CONFIG_ENABLE_WIFI_AP))
@@ -423,6 +424,11 @@ if (CONFIG_ESP32_WIFI_ENABLED)
423424
list(APPEND chip_libraries $<TARGET_FILE:${wpa_supplicant_lib}>)
424425
endif()
425426

427+
if (CONFIG_ETH_ENABLED)
428+
idf_component_get_property(esp_eth_lib esp_eth COMPONENT_LIB)
429+
list(APPEND chip_libraries $<TARGET_FILE:${esp_eth_lib}>)
430+
endif()
431+
426432
idf_component_get_property(esp_netif_lib esp_netif COMPONENT_LIB)
427433
list(APPEND chip_libraries $<TARGET_FILE:${esp_netif_lib}>)
428434

0 commit comments

Comments
 (0)