From 82a063957a7eaa8e9b6389de85d00cb5a1c367cc Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 20 Jan 2026 16:24:56 +0100 Subject: [PATCH] fix(cmakev2/project): generate binaries only if esptool_py component is present Currently, the CONFIG_APP_BUILD_GENERATE_BINARIES option is used to determine whether binary images will be generated in idf_project_default. At present, this option is enabled even for the Linux target, where the esptool_py component is not included, preventing the generation of binary images. To address this issue, verify if the target for esptool_py is present. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/project.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmakev2/project.cmake b/tools/cmakev2/project.cmake index fe7fb413b3d..e236589ec42 100644 --- a/tools/cmakev2/project.cmake +++ b/tools/cmakev2/project.cmake @@ -712,7 +712,7 @@ function(__project_default) COMPONENTS main MAPFILE_TARGET "${executable}_mapfile") - if(CONFIG_APP_BUILD_GENERATE_BINARIES) + if(CONFIG_APP_BUILD_GENERATE_BINARIES AND TARGET idf::esptool_py) # Is it possible to have a configuration where # CONFIG_APP_BUILD_GENERATE_BINARIES is not set?