sof/scripts/cmake
Marc Herbert 5d66f1dac4 cmake: fix .ldc chksum fallback when no SOURCE_DIRECTORY/.git
Fixes old (Aug 2020) and untested commit b2a325a3b7 ("cmake: Handle
empty SOF_SRC_HASH_LONG") which tried to use GIT_LOG_HASH as a fallback
for the SOF_SRC_HASH .ldc checksum but always fell back on "0" instead
because of a misunderstanding of cmake's surprisingly complex "if"
operator.

Before Zephyr this was not an issue in practice because GIT_LOG_HASH was
empty anyway when SOURCE_DIRECTORY/.git was missing, so there was
nothing to lose.

For the Zephyr builds this will now use the SOF SHA1 as the .ldc checksum
for now. Probably not ideal yet but far better than the current constant
"0" which means no check at all.

Also log the SOF_SRC_HASH fallback value now and change the second
fallback (when GIT_LOG_HASH is also missing) from "0" to the
searchable hexspeak "baadf00d".

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-12-24 22:15:13 +00:00
..
defconfigs.cmake cmake: generate the complete .config at configuration time. 2021-03-03 22:33:53 +00:00
dist.cmake dist.cmake: add 'rebuild_cache' warning. 2020-07-10 15:41:18 +01:00
git-hooks.cmake cmake: add spdx license identifier 2019-06-02 16:38:17 +01:00
git-submodules.cmake cmake/github: do not download rimage when CONFIG_LIBRARY/testbench 2021-09-17 17:15:50 +01:00
kconfig.cmake cmake: generate the complete .config at configuration time. 2021-03-03 22:33:53 +00:00
misc.cmake cmake: generate the complete .config at configuration time. 2021-03-03 22:33:53 +00:00
version-build-counter.cmake CMake: require version 3.13 2021-09-10 17:19:29 +01:00
version.cmake cmake: fix .ldc chksum fallback when no SOURCE_DIRECTORY/.git 2021-12-24 22:15:13 +00:00
xtensa-platform.cmake cmake: add spdx license identifier 2019-06-02 16:38:17 +01:00
xtensa-toolchain.cmake cmake: print some error messages when XTENSA_TOOLS_ROOT is wrong 2021-03-08 12:05:08 +00:00