mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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 <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -712,7 +712,7 @@ function(__project_default)
|
|||||||
COMPONENTS main
|
COMPONENTS main
|
||||||
MAPFILE_TARGET "${executable}_mapfile")
|
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
|
# Is it possible to have a configuration where
|
||||||
# CONFIG_APP_BUILD_GENERATE_BINARIES is not set?
|
# CONFIG_APP_BUILD_GENERATE_BINARIES is not set?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user