From 1e4d965b592fb2f790948eed2db8010bda674fc5 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 29 Apr 2023 19:21:46 -0600 Subject: 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 --- cmd/version.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/version.c') diff --git a/cmd/version.c b/cmd/version.c index 190ef6a9061..87e1fa4159c 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[]) -- cgit v1.2.3