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 <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42029 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: insomniac <insomniac@slackware.it> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
360684b41a
commit
c746a748c4
10
src/Kconfig
10
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"
|
||||
|
Reference in New Issue
Block a user