mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
The `idf_build_binary` function generates a binary image for a specified executable target, which may or may not have been created using the `idf_build_executable` function. It adds a custom command to generate the binary image file at the location specified by the `OUTPUT_FILE` option and creates a new target for it, with the name specified by the `TARGET` option. The path of the generated binary file is also stored in the `BINARY_PATH` property of the newly created binary target. Additionally, this binary path is stored in the `EXECUTABLE_BINARY` property of the given executable. This information is used by the `idf_build_generate_metadata` function, which takes the executable target as an argument and includes the binary name in the `project_description.json`. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>