SMBIOS: Fix bios version
Change-Id: I142f08ed3c2704b8fde6d176f23772f5d6b33e85 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31437 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
16d05daffa
commit
94ad37619f
|
@ -382,7 +382,9 @@ static int smbios_write_type0(unsigned long *current, int handle)
|
||||||
t->extended_bios_rom_size = DIV_ROUND_UP(CONFIG_ROM_SIZE, MiB);
|
t->extended_bios_rom_size = DIV_ROUND_UP(CONFIG_ROM_SIZE, MiB);
|
||||||
}
|
}
|
||||||
|
|
||||||
t->system_bios_major_release = 4;
|
t->system_bios_major_release = coreboot_major_revision;
|
||||||
|
t->system_bios_minor_release = coreboot_minor_revision;
|
||||||
|
|
||||||
t->bios_characteristics =
|
t->bios_characteristics =
|
||||||
BIOS_CHARACTERISTICS_PCI_SUPPORTED |
|
BIOS_CHARACTERISTICS_PCI_SUPPORTED |
|
||||||
BIOS_CHARACTERISTICS_SELECTABLE_BOOT |
|
BIOS_CHARACTERISTICS_SELECTABLE_BOOT |
|
||||||
|
|
|
@ -10,6 +10,8 @@ extern const char coreboot_version[];
|
||||||
extern const char coreboot_extra_version[];
|
extern const char coreboot_extra_version[];
|
||||||
extern const char coreboot_build[];
|
extern const char coreboot_build[];
|
||||||
extern const unsigned int coreboot_version_timestamp;
|
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 */
|
/* When coreboot was compiled */
|
||||||
extern const char coreboot_compile_time[];
|
extern const char coreboot_compile_time[];
|
||||||
|
|
|
@ -30,6 +30,8 @@ const char coreboot_version[] = COREBOOT_VERSION;
|
||||||
const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
|
const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION;
|
||||||
const char coreboot_build[] = COREBOOT_BUILD;
|
const char coreboot_build[] = COREBOOT_BUILD;
|
||||||
const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
|
const unsigned int coreboot_version_timestamp = COREBOOT_VERSION_TIMESTAMP;
|
||||||
|
const unsigned int coreboot_major_revision = COREBOOT_MAJOR_VERSION;
|
||||||
|
const unsigned int coreboot_minor_revision = COREBOOT_MINOR_VERSION;
|
||||||
|
|
||||||
const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
|
const char coreboot_compile_time[] = COREBOOT_COMPILE_TIME;
|
||||||
const char coreboot_dmi_date[] = COREBOOT_DMI_DATE;
|
const char coreboot_dmi_date[] = COREBOOT_DMI_DATE;
|
||||||
|
|
|
@ -58,6 +58,7 @@ printf "#define COREBOOT_VERSION_TIMESTAMP $DATE\n"
|
||||||
printf "#define COREBOOT_ORIGIN_GIT_REVISION \"$GITREV\"\n"
|
printf "#define COREBOOT_ORIGIN_GIT_REVISION \"$GITREV\"\n"
|
||||||
|
|
||||||
printf "#define COREBOOT_EXTRA_VERSION \"%s\"\n" "$COREBOOT_EXTRA_VERSION"
|
printf "#define COREBOOT_EXTRA_VERSION \"%s\"\n" "$COREBOOT_EXTRA_VERSION"
|
||||||
|
printf "#define COREBOOT_MAJOR_VERSION %d\n#define COREBOOT_MINOR_VERSION %d\n" `git describe --match [0-9].[0-9]* | sed 's/\([0-9]\)\.\([0-9]\+\).*/\1 \2/'`
|
||||||
printf "#define COREBOOT_BUILD \"$(our_date "$DATE")\"\n"
|
printf "#define COREBOOT_BUILD \"$(our_date "$DATE")\"\n"
|
||||||
printf "#define COREBOOT_BUILD_YEAR_BCD 0x$(our_date "$DATE" +%y)\n"
|
printf "#define COREBOOT_BUILD_YEAR_BCD 0x$(our_date "$DATE" +%y)\n"
|
||||||
printf "#define COREBOOT_BUILD_MONTH_BCD 0x$(our_date "$DATE" +%m)\n"
|
printf "#define COREBOOT_BUILD_MONTH_BCD 0x$(our_date "$DATE" +%m)\n"
|
||||||
|
|
Loading…
Reference in New Issue