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>
This commit is contained in:
8
include/version_string.h
Normal file
8
include/version_string.h
Normal file
@@ -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__ */
|
Reference in New Issue
Block a user