Skip to content

Commit deb0e73

Browse files
marc-hblgirdwood
authored andcommitted
Rename generated version.h to sof_versions.h
Zephyr also a version.h too so the situation was a buggy #include mess that (among others) dropped the SOF git version from the SOF banner when using Zephyr. It's absolutely impossible to fix this mess while keeping two .h files both named exactly the same and even included with the exact same '#include version.h' line, I mean no sof/version.h or other prefix. As a bonus, this rename also reduces the XTOS-only confusion between "version.h" and cavs/version.h". Generating a file in the source tree is a serious bug (to be fixed later), it means this file is never cleaned. Do not hide this bug with a .gitignore rule. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 06c83dc commit deb0e73

17 files changed

Lines changed: 16 additions & 21 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,3 @@ doc/Makefile
7272
cscope.*
7373
ncscope.*
7474

75-
# zephyr files
76-
zephyr/include/version.h

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ file(MAKE_DIRECTORY ${GENERATED_DIRECTORY}/include)
9494
set(DOT_CONFIG_PATH ${GENERATED_DIRECTORY}/.config)
9595
set(CONFIG_H_PATH ${GENERATED_DIRECTORY}/include/autoconfig.h CACHE
9696
PATH "Path to kconfig's .h output file")
97-
set(VERSION_H_PATH ${GENERATED_DIRECTORY}/include/version.h)
97+
set(VERSION_H_PATH ${GENERATED_DIRECTORY}/include/sof_versions.h)
9898

9999
include(scripts/cmake/version.cmake)
100100

installer/sample-config.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Define this empty for a plain sof/ directory and no sof -> sof-v1.2.3
1919
# symbolic links. This is _only_ to override the top-level directory
20-
# name; for version.h see version.cmake and try sof/.tarball-version
20+
# name; for sof_versions.h see version.cmake and try sof/.tarball-version
2121
# SOF_VERSION :=
2222
#
2323
# SOF_VERSION := $(shell git describe --tags )

scripts/test-repro-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ diff_some_files()
124124

125125
done
126126

127-
for f in generated/include/version.h sof.ri \
127+
for f in generated/include/sof_versions.h sof.ri \
128128
src/arch/xtensa/reproducible.ri; do
129129
diff -u --report-identical-files \
130130
{b0,b1}/build_"$p"_?cc/"$f"

src/audio/base_fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <sof/ut.h>
77
#include <ipc4/base_fw.h>
88
#include <ipc4/pipeline.h>
9-
#include <version.h>
9+
#include <sof_versions.h>
1010

1111
/* 0e398c32-5ade-ba4b-93b1-c50432280ee4 */
1212
DECLARE_SOF_RT_UUID("basefw", basefw_comp_uuid, 0xe398c32, 0x5ade, 0xba4b,

src/init/ext_manifest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <kernel/abi.h>
1313
#include <kernel/ext_manifest.h>
1414
#include <user/abi_dbg.h>
15-
#include <version.h>
15+
#include <sof_versions.h>
1616

1717
const struct ext_man_fw_version ext_man_fw_ver
1818
__aligned(EXT_MAN_ALIGN) __section(".fw_metadata") = {

src/platform/amd/renoir/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <ipc/header.h>
3232
#include <ipc/info.h>
3333
#include <kernel/abi.h>
34-
#include <version.h>
34+
#include <sof_versions.h>
3535
#include <errno.h>
3636
#include <stdint.h>
3737
#include <platform/chip_offset_byte.h>

src/platform/baytrail/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <kernel/abi.h>
3737
#include <kernel/ext_manifest.h>
3838

39-
#include <version.h>
39+
#include <sof_versions.h>
4040
#include <errno.h>
4141
#include <stdbool.h>
4242
#include <stddef.h>

src/platform/haswell/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <ipc/info.h>
3434
#include <kernel/abi.h>
3535
#include <kernel/ext_manifest.h>
36-
#include <version.h>
36+
#include <sof_versions.h>
3737
#include <errno.h>
3838
#include <stddef.h>
3939
#include <stdint.h>

src/platform/imx8/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <ipc/info.h>
3232
#include <kernel/abi.h>
3333
#include <kernel/ext_manifest.h>
34-
#include <version.h>
34+
#include <sof_versions.h>
3535
#include <errno.h>
3636
#include <stdint.h>
3737

0 commit comments

Comments
 (0)