Skip to content

Commit 5dbb337

Browse files
authored
Merge branch 'master' into feature/add-validation-logic
2 parents b7ab173 + 42d03d5 commit 5dbb337

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

config/esp32/components/chip/CMakeLists.txt

+9-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,15 @@ if (CONFIG_SEC_CERT_DAC_PROVIDER)
472472
endif()
473473

474474
if (CONFIG_ENABLE_ESP_INSIGHTS_TRACE)
475-
idf_component_get_property(esp_insights_lib espressif__esp_insights COMPONENT_LIB)
475+
idf_build_get_property(build_components BUILD_COMPONENTS)
476+
# esp_insights can be used as an independent component or through component manager so,
477+
# We should check and add the right component.
478+
if("espressif__esp_insights" IN_LIST build_components)
479+
idf_component_get_property(esp_insights_lib espressif__esp_insights COMPONENT_LIB)
480+
elseif("esp_insights" IN_LIST build_components)
481+
idf_component_get_property(esp_insights_lib esp_insights COMPONENT_LIB)
482+
endif()
483+
476484
list(APPEND chip_libraries $<TARGET_FILE:${esp_insights_lib}>)
477485
endif()
478486

0 commit comments

Comments
 (0)