aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-02 15:18:37 +0200
committerTom Rini <trini@konsulko.com>2021-09-17 12:10:44 -0400
commitbc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a (patch)
treee297486b0b529f23ab8cac55461edb33be455b73 /cmd
parentfd004950804a60ebcba8dcc0cc850d793c3aa1ea (diff)
downloadu-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.zip
u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.tar.gz
u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.tar.bz2
version: Remove global macro U_BOOT_VERSION_STRING from version.h
Version string is available in global variable char version_string[]. Macro U_BOOT_VERSION_STRING is not used by any other file, so remove it completely from version.h. Other files were already converted to use variable version_string[]. 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/version.c b/cmd/version.c
index 2f9b898..130e31c 100644
--- a/cmd/version.c
+++ b/cmd/version.c
@@ -13,6 +13,9 @@
#include <asm/cb_sysinfo.h>
#endif
+#define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
+ U_BOOT_TIME " " U_BOOT_TZ ")" CONFIG_IDENT_STRING
+
const char version_string[] = U_BOOT_VERSION_STRING;
static int do_version(struct cmd_tbl *cmdtp, int flag, int argc,