diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/smbios.c | 4 | ||||
-rw-r--r-- | src/include/version.h | 2 | ||||
-rw-r--r-- | src/lib/version.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index f816647ee2..da2569443d 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -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->system_bios_major_release = 4; + t->system_bios_major_release = coreboot_major_revision; + t->system_bios_minor_release = coreboot_minor_revision; + t->bios_characteristics = BIOS_CHARACTERISTICS_PCI_SUPPORTED | BIOS_CHARACTERISTICS_SELECTABLE_BOOT | diff --git a/src/include/version.h b/src/include/version.h index f24b893e0a..d8cf725166 100644 --- a/src/include/version.h +++ b/src/include/version.h @@ -10,6 +10,8 @@ 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[]; diff --git a/src/lib/version.c b/src/lib/version.c index 63235b3262..c84a7275e6 100644 --- a/src/lib/version.c +++ b/src/lib/version.c @@ -30,6 +30,8 @@ const char coreboot_version[] = COREBOOT_VERSION; const char coreboot_extra_version[] = COREBOOT_EXTRA_VERSION; const char coreboot_build[] = COREBOOT_BUILD; 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_dmi_date[] = COREBOOT_DMI_DATE; |