esp-idf/examples/system/ota/README.md at v5.2.2 · espressif/esp-idf · GitHub
Versioning of Applications
the 1st one note work, 2 and 3 work
The application version is obtained from one of three places:
- If the
CONFIG_APP_PROJECT_VER_FROM_CONFIG
option is set, the value ofCONFIG_APP_PROJECT_VER
is used- Else, if the
PROJECT_VER
variable is set in the projectCMakeLists.txt
file, this value is used- Else, if the file
$PROJECT_PATH/version.txt
exists, its contents are used asPROJECT_VER
- Else, if the project is located in a Git repository, the output of
git describe
is used- Otherwise,
PROJECT_VER
will be "1"