mirror of https://github.com/thesofproject/sof.git
version.cmake: include scripts/ and zephyr/ in the .ldc dictionary hash
scripts/ has kconfig defaults and CMake code that can affect the dictionary. Note this does not fix #3890 because .config (and maybe others) are still not hashed but it helps a bit. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
58d3551960
commit
5de4a09756
|
@ -90,7 +90,7 @@ if(EXISTS ${SOF_ROOT_SOURCE_DIRECTORY}/.git/)
|
||||||
set(SOURCE_HASH_DIR "${SOF_ROOT_BINARY_DIRECTORY}/source_hash")
|
set(SOURCE_HASH_DIR "${SOF_ROOT_BINARY_DIRECTORY}/source_hash")
|
||||||
file(MAKE_DIRECTORY ${SOURCE_HASH_DIR})
|
file(MAKE_DIRECTORY ${SOURCE_HASH_DIR})
|
||||||
# list tracked files from src directory
|
# list tracked files from src directory
|
||||||
execute_process(COMMAND git ls-files src
|
execute_process(COMMAND git ls-files src/ scripts/ zephyr/
|
||||||
WORKING_DIRECTORY ${SOF_ROOT_SOURCE_DIRECTORY}
|
WORKING_DIRECTORY ${SOF_ROOT_SOURCE_DIRECTORY}
|
||||||
OUTPUT_FILE "${SOURCE_HASH_DIR}/tracked_file_list"
|
OUTPUT_FILE "${SOURCE_HASH_DIR}/tracked_file_list"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue