diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-02 15:18:31 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-17 12:10:44 -0400 |
commit | bdfb6d70bb45da6e31785171fed70cb93b0ff36b (patch) | |
tree | add9a41d8f7076b316ba84cd356b64167e11c58e /lib | |
parent | fa9c5da70206621b42530e58882680fb1c4079cd (diff) | |
download | u-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 'lib')
-rw-r--r-- | lib/display_options.c | 2 | ||||
-rw-r--r-- | lib/efi_loader/efi_tcg2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/display_options.c b/lib/display_options.c index 4da1f52..360b01b 100644 --- a/lib/display_options.c +++ b/lib/display_options.c @@ -8,7 +8,7 @@ #include <compiler.h> #include <console.h> #include <div64.h> -#include <version.h> +#include <version_string.h> #include <linux/ctype.h> #include <asm/io.h> diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 578b69e..7bacf9c 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -14,7 +14,7 @@ #include <efi_tcg2.h> #include <log.h> #include <malloc.h> -#include <version.h> +#include <version_string.h> #include <tpm-v2.h> #include <u-boot/hash-checksum.h> #include <u-boot/sha1.h> |