fix(cmakev2): Build must include component manager output when re-run is expected

The build system should include the file generated by the component
manager after downloading components even if the component manager
requested a re-run due to a missing Kconfig.
This commit is contained in:
Sudeep Mohanty
2025-11-04 07:48:14 +01:00
committed by Frantisek Hrbata
parent f284381225
commit dbe893865c
+4 -1
View File
@@ -191,8 +191,11 @@ function(__download_component_level_managed_components)
endif()
# Initialize managed components by including the generated list
if(result EQUAL 0)
# Include components even if result is 10 (missing kconfig) to allow kconfig regeneration
if(result EQUAL 0 OR result EQUAL 10)
include(${managed_components_list_file})
else()
idf_warn("Component manager returned unexpected result: ${result}. Managed components will not be included.")
endif()
# Clean up temporary files