Page 1 of 1

ESP app versions question

Posted: Wed Apr 03, 2019 6:40 pm
by newsettler_AI
Hi,

When ESP32 start I have this in log:

Code: Select all

I (558) boot: Loaded app from partition at offset 0x10000
I (559) boot: Disabling RNG early entropy source...
I (559) cpu_start: Pro cpu up.
I (563) cpu_start: Application information:
I (567) cpu_start: Project name:     My_project
I (572) cpu_start: App version:      6626cee-dirty
I (578) cpu_start: Compile time:     20:21:35
I (583) cpu_start: Compile date:     Apr  3 2019
I (588) cpu_start: ESP-IDF:          v3.3-beta1-274-g44b97b7fe
Where from this value
6626cee
comes out?

What does mean dirty? Should it be "clean" anyhow? :)

Shouldnt my version be "1" as noted at this doc?:
https://docs.espressif.com/projects/esp ... pp-version
If PROJECT_VER variable is not set in project Makefile/CMakeLists.txt then it will be retrieved from either $(PROJECT_PATH)/version.txt file (if present) else using git command git describe. If neither is available then PROJECT_VER will be set to “1”.
I dont have version.txt file inside project folder and my Makefile doesnt contain any PROJECT_VER includes:

Code: Select all

#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#

PROJECT_NAME := My_project

EXTRA_CFLAGS += --save-temps

# Add new components (source folders)
# Must be before include $(IDF_PATH)/make/project.mk
# $(PROJECT_PATH)/xxx didn't work -> use $(abspath xxx) instead
EXTRA_COMPONENT_DIRS := $(abspath driver)	$(abspath custom_library) $(abspath examples)

include $(IDF_PATH)/make/project.mk

I've located "6626cee-dirty" string at Project_folder/build/app_update/esp_app_desc.i , looks like its already had been set from some outside

Re: ESP app versions question

Posted: Thu Apr 04, 2019 1:34 am
by ESP_Sprite
else using git command git describe
The hex numbers are the git commit your project is on. The -dirty indicates the source code has been changed since that commit was done.

Re: ESP app versions question

Posted: Sun Apr 07, 2019 1:45 pm
by newsettler_AI
Thank you for explanation :)

Re: ESP app versions question

Posted: Tue Jul 02, 2019 2:30 pm
by jcsbanks
If the local esp-idf is not altered, should it be possible to not have -dirty tags on branch release/v3.3?

Re: ESP app versions question

Posted: Wed May 20, 2020 7:33 am
by yango3
I think set(PROJECT_VER "0.0.1") should be put before ->

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

Other wise , it will not be found. And will use the git commit version.