These strings are now only expanded in lib/identity.c. This improves ccache hit rates slightly, as one built object file lib/version.o is used for all variants of a board. Also one built object file lib/identity.o can become a ccache hit for successive builds of a variant, while the commit hash changes. Change-Id: Ia7d5454d95c8698ab1c1744e63ea4c04d615bb3b Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74449 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
31 lines
763 B
C
31 lines
763 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef VERSION_H
|
|
#define VERSION_H
|
|
|
|
/* coreboot Version */
|
|
extern const char coreboot_version[];
|
|
extern const char coreboot_extra_version[];
|
|
extern const char coreboot_build[];
|
|
extern const unsigned int coreboot_version_timestamp;
|
|
extern const unsigned int coreboot_major_revision;
|
|
extern const unsigned int coreboot_minor_revision;
|
|
|
|
/* When coreboot was compiled */
|
|
extern const char coreboot_compile_time[];
|
|
extern const char coreboot_dmi_date[];
|
|
|
|
struct bcd_date {
|
|
unsigned char century;
|
|
unsigned char year;
|
|
unsigned char month;
|
|
unsigned char day;
|
|
unsigned char weekday;
|
|
};
|
|
|
|
extern const struct bcd_date coreboot_build_date;
|
|
|
|
/* IASL version */
|
|
extern const unsigned int asl_revision;
|
|
|
|
#endif /* VERSION_H */
|