mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-06 23:30:30 +03:00
Currently, the `idf_build_generate_metadata` function takes an executable target as an argument, and the binary name is stored in the `EXECUTABLE_BINARY` property. This approach is inconvenient because a single executable might generate multiple binary images, making it unreliable to store the binary image name in the executable property due to the N:1 relationship. To address this, pass the binary image target instead of the executable target to the `idf_build_generate_metadata` function. This change is facilitated by linking the binary target, executable target, and library interface targets with the following properties: binary:EXECUTABLE_TARGET -> executable:LIBRARY_INTERFACE -> library Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>