Skip to content

Commit

Permalink
version.cmake: include scripts/ and zephyr/ in the .ldc dictionary hash
Browse files Browse the repository at this point in the history
scripts/ has kconfig defaults and CMake code that can affect the
dictionary. Note this does not fix thesofproject#3890 because .config (and maybe
others) are still not hashed but it helps a bit.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed Jan 14, 2022
1 parent 4816019 commit f14171a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit f14171a

Please sign in to comment.