File tree 1 file changed +9
-1
lines changed
config/esp32/components/chip
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,15 @@ if (CONFIG_SEC_CERT_DAC_PROVIDER)
472
472
endif ()
473
473
474
474
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
+
476
484
list (APPEND chip_libraries $<TARGET_FILE:${esp_insights_lib} >)
477
485
endif ()
478
486
You can’t perform that action at this time.
0 commit comments