Christian Gmeiner (christian.gmeiner@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1163
-gerrit
commit de76e700964196d31c8ac1be2b25fcb49ff97cb3 Author: Christian Gmeiner christian.gmeiner@gmail.com Date: Tue Jul 3 10:11:51 2012 +0200
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 --- src/arch/x86/boot/smbios.c | 4 ++-- src/mainboard/Kconfig | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c index f39bf04..3b9e5a1 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; diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig index c89d4a7..b53b0e7 100644 --- a/src/mainboard/Kconfig +++ b/src/mainboard/Kconfig @@ -323,4 +323,17 @@ config ENABLE_POWER_BUTTON def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
+config MAINBOARD_SERIAL_NUMBER + string "Serial number" + depends on GENERATE_SMBIOS_TABLES + default "123456789" + help + Define the used serial number which will be used by SMBIOS tables. + +config MAINBOARD_VERSION + string "Version number" + depends on GENERATE_SMBIOS_TABLES + default "1.0" + help + Define the used version number which will be used by SMBIOS tables. endmenu