[PATCH] version: Move version_string[] from version.h to version_string.h
Simon Glass
sjg at chromium.org
Mon Feb 1 21:43:52 CET 2021
On Wed, 27 Jan 2021 at 08:57, Pali Rohár <pali at kernel.org> wrote:
>
> 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 at kernel.org>
> ---
> board/ge/b1x5v2/b1x5v2.c | 2 +-
> board/ge/bx50v3/bx50v3.c | 2 +-
> board/ge/mx53ppd/mx53ppd.c | 2 +-
> cmd/version.c | 1 +
> common/main.c | 2 +-
> drivers/video/cfb_console.c | 3 +--
> include/version.h | 3 ---
> include/version_string.h | 8 ++++++++
> lib/display_options.c | 2 +-
> test/print_ut.c | 2 +-
> 10 files changed, 16 insertions(+), 11 deletions(-)
> create mode 100644 include/version_string.h
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list