diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-02 16:18:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-17 19:10:44 +0300 |
commit | bdfb6d70bb45da6e31785171fed70cb93b0ff36b (patch) | |
tree | add9a41d8f7076b316ba84cd356b64167e11c58e /include/version_string.h | |
parent | fa9c5da70206621b42530e58882680fb1c4079cd (diff) | |
download | u-boot-bdfb6d70bb45da6e31785171fed70cb93b0ff36b.tar.xz |
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 'include/version_string.h')
-rw-r--r-- | include/version_string.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/version_string.h b/include/version_string.h new file mode 100644 index 0000000000..a89a6e4370 --- /dev/null +++ b/include/version_string.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __VERSION_STRING_H__ +#define __VERSION_STRING_H__ + +extern const char version_string[]; + +#endif /* __VERSION_STRING_H__ */ |