aboutsummaryrefslogtreecommitdiff
path: root/cmd/version.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-04-29 19:21:46 -0600
committerTom Rini <trini@konsulko.com>2023-05-31 17:23:01 -0400
commit1e4d965b592fb2f790948eed2db8010bda674fc5 (patch)
treeb51cdf2aea49833b67ed0cded820103fec1f9110 /cmd/version.c
parent36fc832927eba16b175e07c5a42b9d7ab8f5552b (diff)
downloadu-boot-1e4d965b592fb2f790948eed2db8010bda674fc5.zip
u-boot-1e4d965b592fb2f790948eed2db8010bda674fc5.tar.gz
u-boot-1e4d965b592fb2f790948eed2db8010bda674fc5.tar.bz2
acpi: Put the version numbers in a central place
At present two acpi files are built every time since they use a version number from version.h This is not necessary. Make use of the same technique as for the version string, so that they are build only when they change. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/version.c')
-rw-r--r--cmd/version.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/version.c b/cmd/version.c
index 190ef6a..87e1fa4 100644
--- a/cmd/version.c
+++ b/cmd/version.c
@@ -19,6 +19,8 @@
U_BOOT_TIME " " U_BOOT_TZ ")" CONFIG_IDENT_STRING
const char version_string[] = U_BOOT_VERSION_STRING;
+const unsigned short version_num = U_BOOT_VERSION_NUM;
+const unsigned char version_num_patch = U_BOOT_VERSION_NUM_PATCH;
static int do_version(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])