mirror of https://github.com/thesofproject/sof.git
version.cmake: add --dirty to git describe command
For at least two reasons: - exposes sneaky change(s) performed by automation if/when any - solves the mystery of the Source content hash (printed on the next line) changing while the git version does not. Example, at https://sof-ci.01.org/sofpr/PR3941/build8429/build/bdw_gcc.txt -- Found Git: /usr/bin/git (found version "2.17.1") -- GIT_TAG / GIT_LOG_HASH : v1.7-rc1-151-g023c4abacde1 / 023c4abac -- Source content hash: 91f261ea whereas at https://github.com/thesofproject/sof/runs/2166298087, xtensa-build-all: -- Found Git: /usr/bin/git (found version "2.17.1") -- GIT_TAG / GIT_LOG_HASH : v1.7-rc1-151-g023c4abacde1 / 023c4abac -- Source content hash: 67f31697 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
7e19c42404
commit
041c2ef6de
|
@ -23,7 +23,8 @@ if(EXISTS ${TARBALL_VERSION_SOURCE_PATH})
|
|||
list(GET lines 1 GIT_LOG_HASH)
|
||||
message(STATUS "Found ${TARBALL_VERSION_FILE_NAME}")
|
||||
else()
|
||||
execute_process(COMMAND git describe --tags --abbrev=12 --match v*
|
||||
execute_process(
|
||||
COMMAND git describe --tags --abbrev=12 --match v* --dirty
|
||||
WORKING_DIRECTORY ${SOF_ROOT_SOURCE_DIRECTORY}
|
||||
OUTPUT_VARIABLE GIT_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
|
|
Loading…
Reference in New Issue