sof/scripts/cmake
Marc Herbert 2d3c7eae4f xtensa-build-zephyr.py: don't extract SOF_BUILD from generated .h file
This replaces and simplifies commit a823958a8d ("xtensa-build-zephyr:
pass sof build version to rimage") with a constant 1.

That commit was submitted to avoid a test failure in a broken, internal
test looking for an SOF_BUILD value... hardcoded to 1! (internal FW issue
257, test TestLoadFwExtended::()::test_00_01_load_fw_and_check_version")

The final goal is for this script to stop extracting anything from
`generated/sof_versions.h` so rimage can be configured _before_ the build
has started. Other commits will deal with other parts of sof_versions.h

SOF_BUILD can be replaced by a constant because it has always been one
when building with Zephyr. The optional BLD_COUNTERS feature - disabled
by default in XTOS since commit 9f8cce1522 ("Disable __TIME__ and the
non-reproducible build counter by default") for build reproducibility
reasons - has never worked with Zephyr for the following reasons:

- The sof_add_build_counter_rule() invocation is located in the
top-level sof/CMakeLists.txt file which has never been used by the
Zephyr build.

- sof_add_build_counter_rule() registers a POST_BUILD command for the
top-level "sof" CMake target but there is no "sof" build target in the
Zephyr build.

- Variables like VERSION_BUILD_COUNTER_CMAKE_PATH are not defined in the
Zephyr build for some unknown reason.

- Probably others.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-05-19 10:02:03 +03: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: stop sneakily downloading missing submodules at build time 2022-08-31 10:40:04 +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 xtensa-build-zephyr.py: don't extract SOF_BUILD from generated .h file 2023-05-19 10:02:03 +03:00
version.cmake version.cmake: switch SOF_MAJOR etc. to a new, static `versions.json` 2023-05-04 16:57:28 +03:00
xtensa-platform.cmake cmake: add spdx license identifier 2019-06-02 16:38:17 +01:00
xtensa-toolchain.cmake platform: remove support for cAVS 1.5 platforms 2023-03-02 11:28:23 +00:00