From 1146628023a6bd8a24b47880c43d3f27882d6e86 Mon Sep 17 00:00:00 2001 From: PSONALl <77670766+PSONALl@users.noreply.github.com> Date: Fri, 8 Sep 2023 21:30:44 +0530 Subject: [PATCH] Add rule for esp-insights component (#29123) --- config/esp32/components/chip/CMakeLists.txt | 7 ++++++- config/esp32/components/chip/idf_component.yml | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 2f8655b81130ee..61920102605cba 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -484,8 +484,13 @@ foreach(phy_blob ${phy_blobs}) endforeach() set(components_to_link esp_event hal esp_system soc efuse vfs driver esp_coex freertos) +idf_build_get_property(build_components BUILD_COMPONENTS) foreach(component ${components_to_link}) - idf_component_get_property(lib_name ${component} COMPONENT_LIB) + # Some of the components are not present in IDF v4.x + # So, Check if the component is in the list of build components + if("${component}" IN_LIST build_components) + idf_component_get_property(lib_name ${component} COMPONENT_LIB) + endif() list(APPEND chip_libraries $) endforeach() diff --git a/config/esp32/components/chip/idf_component.yml b/config/esp32/components/chip/idf_component.yml index d613993afff206..9b888d269c166e 100644 --- a/config/esp32/components/chip/idf_component.yml +++ b/config/esp32/components/chip/idf_component.yml @@ -20,3 +20,7 @@ dependencies: espressif/esp_insights: version: "1.0.1" require: public + # There is an issue with IDF-Component-Manager when ESP Insights is included. + # Issue: https://github.com/project-chip/connectedhomeip/issues/29125 + rules: + - if: "idf_version >=5.0"