Merge branch 'bugfix/cmakev2-coredump-default-component_v6.1' into 'release/v6.1'

fix(cmakev2): include config-selected default components (v6.1)

See merge request espressif/esp-idf!51930
This commit is contained in:
Roland Dobai
2026-08-27 08:21:54 +02:00
5 changed files with 86 additions and 0 deletions
@@ -0,0 +1,8 @@
idf_build_get_property(target IDF_TARGET)
idf_build_get_property(non_os_build NON_OS_BUILD)
if(IDF_BUILD_V2 AND NOT non_os_build AND NOT "${target}" STREQUAL "linux")
if(CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME OR CONFIG_ESP_SYSTEM_PANIC_GDBSTUB)
idf_project_add_default_build_component(esp_gdbstub)
endif()
endif()
@@ -0,0 +1,11 @@
idf_build_get_property(target IDF_TARGET)
idf_build_get_property(non_os_build NON_OS_BUILD)
if(IDF_BUILD_V2 AND CONFIG_ESP_COREDUMP_ENABLE
AND NOT non_os_build
AND NOT "${target}" STREQUAL "linux")
# This ensures that the component is added to the build when coredump is enabled,
# even if no other component depends on it.
# This allows users to simply enable it in menuconfig without needing to modify their component dependencies.
idf_project_add_default_build_component(espcoredump)
endif()