From dbe893865cf39637283d199c012577caecffc87f Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Mon, 15 Sep 2025 10:42:14 +0200 Subject: [PATCH] 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. --- tools/cmakev2/manager.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cmakev2/manager.cmake b/tools/cmakev2/manager.cmake index e5ce56f5f88..119f365f19a 100644 --- a/tools/cmakev2/manager.cmake +++ b/tools/cmakev2/manager.cmake @@ -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