diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-02 16:18:37 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-17 19:10:44 +0300 |
commit | bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a (patch) | |
tree | e297486b0b529f23ab8cac55461edb33be455b73 /cmd | |
parent | fd004950804a60ebcba8dcc0cc850d793c3aa1ea (diff) | |
download | u-boot-bc21ccbaaa7dda32ec6250cac5f9c9e47e5b629a.tar.xz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/version.c b/cmd/version.c index 2f9b898655..130e31cd84 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, |