summaryrefslogtreecommitdiff
path: root/src/arch/x86/boot/smbios.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2012-07-03 10:11:51 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-07-03 13:36:27 +0200
commita645abbf54f965e596c58e8eb2c84d733e19b737 (patch)
tree1b2b96e855d8b95eba5d8f952a8791efc883af29 /src/arch/x86/boot/smbios.c
parent9b4c92ad80d691e9e2a4e5a84ad035fbe8e8d977 (diff)
downloadcoreboot-a645abbf54f965e596c58e8eb2c84d733e19b737.tar.xz
SMBIOS: move serial number and version out to Kconf
With this change it is possible to define serial number and version of the mainboard. These informations are used in SMBIOS tables. Change-Id: I1634882270f6cb94e00aceb7832e7fd14adc186b Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-on: http://review.coreboot.org/1163 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/arch/x86/boot/smbios.c')
-rw-r--r--src/arch/x86/boot/smbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index f39bf04b3b..3b9e5a1327 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -173,8 +173,8 @@ static int smbios_write_type1(unsigned long *current, int handle)
t->length = len - 2;
t->manufacturer = smbios_add_string(t->eos, CONFIG_MAINBOARD_VENDOR);
t->product_name = smbios_add_string(t->eos, CONFIG_MAINBOARD_PART_NUMBER);
- t->serial_number = smbios_add_string(t->eos, "123456789");
- t->version = smbios_add_string(t->eos, "1.0");
+ t->serial_number = smbios_add_string(t->eos, CONFIG_MAINBOARD_SERIAL_NUMBER);
+ t->version = smbios_add_string(t->eos, CONFIG_MAINBOARD_VERSION);
len = t->length + smbios_string_table_len(t->eos);
*current += len;
return len;