Skip to content

Commit

Permalink
Add rule for esp-insights component (#29123)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSONALl authored and pull[bot] committed Jan 24, 2024
1 parent 70472e6 commit 1146628
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_FILE:${lib_name}>)
endforeach()

Expand Down
4 changes: 4 additions & 0 deletions config/esp32/components/chip/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 1146628

Please sign in to comment.