From c746a748c4c5ec6421d7f9f5760717348231d091 Mon Sep 17 00:00:00 2001 From: Johnny Lin Date: Wed, 3 Jun 2020 11:44:22 +0800 Subject: smbios: Add option VPD_SMBIOS_VERSION that reads BIOS version from a VPD variable If VPD_SMBIOS_VERSION is selected, it would read VPD_RO variable that can override SMBIOS type 0 version. One special scenario of using this feature is to assign a BIOS version to a coreboot image without the need to rebuild from source. VPD_SMBIOS_VERSION default is n. Tested=On OCP Delta Lake, dmidecode -t 0 can see the version being updated from VPD. Change-Id: Iee62ed900095001ffac225fc629b3f2f52045e30 Signed-off-by: Johnny Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/42029 Tested-by: build bot (Jenkins) Reviewed-by: insomniac Reviewed-by: Julius Werner --- src/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index 1b49e2bd7e..f9c3e6afc8 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -730,6 +730,16 @@ config MAINBOARD_SMBIOS_PRODUCT_NAME help Override the default Product name stored in SMBIOS structures. +config VPD_SMBIOS_VERSION + bool "Populates SMBIOS type 0 version from the VPD_RO variable 'firmware_version'" + default n + depends on VPD && GENERATE_SMBIOS_TABLES + help + Selecting this option will read firmware_version from + VPD_RO and override SMBIOS type 0 version. One special + scenario of using this feature is to assign a BIOS version + to a coreboot image without the need to rebuild from source. + endmenu source "payloads/Kconfig" -- cgit v1.2.3