From 1760434012f268eac2339fe57d00f521efe31c91 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Fri, 9 Jun 2023 00:55:52 +0800 Subject: [PATCH] ESP32: Fix the link issues for ieee802154 component and esp_eth component (#27140) --- config/esp32/components/chip/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 9a9b6e98e674ab..b715b4cd908d0c 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -371,9 +371,10 @@ endif() if(CONFIG_OPENTHREAD_ENABLED) idf_component_get_property(openthread_lib openthread COMPONENT_LIB) list(APPEND chip_libraries $) - - idf_component_get_property(ieee802154_lib ieee802154 COMPONENT_LIB) - list(APPEND chip_libraries $) + if (CONFIG_IEEE802154_ENABLED) + idf_component_get_property(ieee802154_lib ieee802154 COMPONENT_LIB) + list(APPEND chip_libraries $) + endif() endif() 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) list(APPEND chip_libraries $) endif() +if (CONFIG_ETH_ENABLED) + idf_component_get_property(esp_eth_lib esp_eth COMPONENT_LIB) + list(APPEND chip_libraries $) +endif() + idf_component_get_property(esp_netif_lib esp_netif COMPONENT_LIB) list(APPEND chip_libraries $)