mirror of https://github.com/thesofproject/sof.git
cmake: set git hash to 8 digit
GIT_LOG_HASH can be more than 8 digits. Limit hash value up to first 8 digits. fixes: #3322 Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
This commit is contained in:
parent
2e07bb9d89
commit
7a10da097c
|
@ -83,7 +83,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/)
|
|||
string(SUBSTRING ${SOF_SRC_HASH_LONG} 0 8 SOF_SRC_HASH)
|
||||
message(STATUS "Source content hash: ${SOF_SRC_HASH}")
|
||||
else()
|
||||
set(SOF_SRC_HASH ${GIT_LOG_HASH})
|
||||
string(SUBSTRING ${GIT_LOG_HASH} 0 8 SOF_SRC_HASH)
|
||||
message(WARNING "Source content hash can't be calculated, use GIT_LOG_HASH")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue