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:
Marc Herbert 2022-01-14 05:25:14 +00:00 committed by Liam Girdwood
parent 58d3551960
commit 5de4a09756
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ if(EXISTS ${SOF_ROOT_SOURCE_DIRECTORY}/.git/)
set(SOURCE_HASH_DIR "${SOF_ROOT_BINARY_DIRECTORY}/source_hash")
file(MAKE_DIRECTORY ${SOURCE_HASH_DIR})
# 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}
OUTPUT_FILE "${SOURCE_HASH_DIR}/tracked_file_list"
)