aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-02 15:18:31 +0200
committerTom Rini <trini@konsulko.com>2021-09-17 12:10:44 -0400
commitbdfb6d70bb45da6e31785171fed70cb93b0ff36b (patch)
treeadd9a41d8f7076b316ba84cd356b64167e11c58e /cmd
parentfa9c5da70206621b42530e58882680fb1c4079cd (diff)
downloadu-boot-bdfb6d70bb45da6e31785171fed70cb93b0ff36b.zip
u-boot-bdfb6d70bb45da6e31785171fed70cb93b0ff36b.tar.gz
u-boot-bdfb6d70bb45da6e31785171fed70cb93b0ff36b.tar.bz2
version: Move version_string[] from version.h to version_string.h
More C files do not use compile time timestamp macros and do not have to be recompiled every time when SOURCE_DATE_EPOCH changes. This patch moves version_string[] from version.h to version_string.h and updates other C files which only needs version_string[] string to include version_string.h instead of version.h. After applying this patch these files are not recompiled every time when SOURCE_DATE_EPOCH changes. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/version.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/version.c b/cmd/version.c
index 685b458..965ac2e 100644
--- a/cmd/version.c
+++ b/cmd/version.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <command.h>
#include <version.h>
+#include <version_string.h>
#include <linux/compiler.h>
#ifdef CONFIG_SYS_COREBOOT
#include <asm/cb_sysinfo.h>