diff options
author | Johnny Lin <johnny_lin@wiwynn.com> | 2020-06-03 11:44:22 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-28 21:48:38 +0000 |
commit | c746a748c4c5ec6421d7f9f5760717348231d091 (patch) | |
tree | dcf81c7606f3d7ba5eff556c965476311a2829f3 /src/Kconfig | |
parent | 360684b41aec795d254dcaac1cefb4acf9e129d3 (diff) |
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>
Diffstat (limited to 'src/Kconfig')
-rw-r--r-- | src/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
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" |