mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user