summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-30 23:08:26 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-06-11 13:20:56 +0200
commit0afdec4cdcb8f5e6591674864fa66dbede2b8070 (patch)
treef13bbe9f8ef7f43eb07fc7179a73276a0e10eb6e /src/arch
parent1a1a826276117514d7a9faf06d6ee8e1c0d099d9 (diff)
downloadcoreboot-0afdec4cdcb8f5e6591674864fa66dbede2b8070.tar.xz
lenovo: Hide SMBIOS config
It's derived from EEPROM on Lenovo machines and not from user config which is ignored. Change-Id: I54fb76a3160e47cd36d33d2937c4bfaddcd36a69 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7055 Tested-by: build bot (Jenkins) Reviewed-by: Nicolas Reinecke <nr@das-labor.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/boot/smbios.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/boot/smbios.c b/src/arch/x86/boot/smbios.c
index 2f1226dd7a..1dbe32dc2d 100644
--- a/src/arch/x86/boot/smbios.c
+++ b/src/arch/x86/boot/smbios.c
@@ -281,6 +281,8 @@ static int smbios_write_type0(unsigned long *current, int handle)
return len;
}
+#if !CONFIG_SMBIOS_PROVIDED_BY_MOBO
+
const char *__attribute__((weak)) smbios_mainboard_serial_number(void)
{
return CONFIG_MAINBOARD_SERIAL_NUMBER;
@@ -305,6 +307,7 @@ void __attribute__((weak)) smbios_mainboard_set_uuid(u8 *uuid)
{
/* leave all zero */
}
+#endif
#ifdef CONFIG_MAINBOARD_FAMILY
const char *smbios_mainboard_family(void)