cmake: Include GIT_TAG in generated version.h file

GIT_TAG is user readable form of used source code version with
commit identifier, what is important for bugs reproducibility,
so it will be convenient to have this information in output logs.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-07-29 09:45:06 +02:00 committed by Liam Girdwood
parent 901f991eee
commit 2263a8bc62
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ function(sof_check_version_h)
"#define SOF_MICRO ${SOF_MICRO}\n"
"#define SOF_TAG \"${SOF_TAG}\"\n"
"#define SOF_BUILD ${SOF_BUILD}\n"
"#define SOF_GIT_TAG \"${GIT_TAG}\"\n"
"#define SOF_SRC_HASH 0x${SOF_SRC_HASH}\n"
)