fix(cmakev2/kconfig): suppress transient kconfgen warnings during component manager runs

kconfgen runs while the component manager iterates to convergence.
Those passes operate on partial component sets and emit "unknown
kconfig symbol" warnings for symbols defined in not-yet-downloaded
components — idf-build-apps treats those as build failures.

Suppress kconfgen output on the intermediate passes; only the final
pass against the converged set emits warnings.
This commit is contained in:
Sudeep Mohanty
2026-05-25 12:31:17 +02:00
parent a25c1f5476
commit 9e20c3ba57
3 changed files with 59 additions and 7 deletions
+8
View File
@@ -592,6 +592,14 @@ macro(idf_project_init)
# Only creates a backup when the component manager is enabled.
__create_sdkconfig_orig_copy()
# When the component manager is enabled, suppress kconfgen warnings
# on this initial pass. Managed component symbols are unknown at this
# stage and will be resolved after __fetch_components_from_registry().
idf_build_get_property(idf_component_manager IDF_COMPONENT_MANAGER)
if(idf_component_manager EQUAL 1)
idf_build_set_property(__KCONFGEN_QUIET YES)
endif()
# Generate initial sdkconfig with discovered components
__generate_sdkconfig()