ESP app versions question

newsettler_AI
Posts: 114
Joined: Wed Apr 05, 2017 12:49 pm

ESP app versions question

Postby newsettler_AI » Wed Apr 03, 2019 6:40 pm

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

ESP_Sprite
Posts: 3589
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP app versions question

Postby ESP_Sprite » Thu Apr 04, 2019 1:34 am

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.

newsettler_AI
Posts: 114
Joined: Wed Apr 05, 2017 12:49 pm

Re: ESP app versions question

Postby newsettler_AI » Sun Apr 07, 2019 1:45 pm

Thank you for explanation :)

jcsbanks
Posts: 300
Joined: Tue Mar 28, 2017 8:03 pm

Re: ESP app versions question

Postby jcsbanks » Tue Jul 02, 2019 2:30 pm

If the local esp-idf is not altered, should it be possible to not have -dirty tags on branch release/v3.3?

yango3
Posts: 1
Joined: Wed May 20, 2020 7:29 am

Re: ESP app versions question

Postby yango3 » Wed May 20, 2020 7:33 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 8 guests