Page 1 of 1

ESP-IDF Binary Notes and First Line

Posted: Wed Aug 07, 2024 12:37 am
by joe_fang_iD
Looking at the binary for one of the ESP-IDF projects and the first line contains something about the version number:

v0.2.17-1-gXXXXXXX-dirty

where the XXXXXXX is the hash code for the latest commit that the build is based out of, following the latest tag. Is there any documentation on how to customize this binary first line? (maybe I haven't looked for this hard enough)

Re: ESP-IDF Binary Notes and First Line

Posted: Wed Aug 07, 2024 12:55 am
by boarchuz
What you're seeing is the "idf_ver" field of the esp_app_desc_t.

You can read about the image format here:
https://docs.espressif.com/projects/esp ... ormat.html

There's also a section in there on adding your own custom header after the esp_app_desc_t.

Re: ESP-IDF Binary Notes and First Line

Posted: Wed Aug 07, 2024 7:44 pm
by joe_fang_iD
Thank you!