summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/boot')
-rw-r--r--src/arch/x86/boot/smbios.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index f65ced2746..308336a5e8 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -131,7 +131,11 @@ static int smbios_write_type0(unsigned long *current, int handle)
t->vendor = smbios_add_string(t->eos, "coreboot");
#if !CONFIG_CHROMEOS
t->bios_release_date = smbios_add_string(t->eos, COREBOOT_DMI_DATE);
- t->bios_version = smbios_add_string(t->eos, COREBOOT_VERSION);
+
+ if (strlen(CONFIG_LOCALVERSION))
+ t->bios_version = smbios_add_string(t->eos, CONFIG_LOCALVERSION);
+ else
+ t->bios_version = smbios_add_string(t->eos, COREBOOT_VERSION);
#else
#define SPACES \
" "