From 5eb7b8bd3474904759c83aa9f27889331da0ba60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Mon, 6 Oct 2025 11:13:12 +0200 Subject: [PATCH] payloads/external/edk2/Makefile: Set SMBIOS to 3.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit coreboot produces SMBIOS tables with version 3.0.0. The UEFI payload may overwrite this value based on PCDs and cause a mismatch of the SMBIOS tables version produced by coreboot and version visible to OS. To ensure proper parsing of SMBIOS tables in OS, set the same version of SMBIOS for UEFI payload using the PCDs. TEST=Run dmidecode on Gigabyte MZ33-AR1 and see that the tool reports SMBIOS 3.0.0 present. Change-Id: Ie3cdcca65dbcdddc74cb352ef5c4d3e83bdc87f5 Signed-off-by: Michał Żygowski Reviewed-on: https://review.coreboot.org/c/coreboot/+/89481 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- payloads/external/edk2/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index 6122cd4d30..c9bd36a27f 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -185,6 +185,10 @@ endif BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId="COREv4" BUILD_STR += --pcd gUefiCpuPkgTokenSpaceGuid.PcdFirstTimeWakeUpAPsBySipi=FALSE +# coreboot produces SMBIOS 3.0.0 tables +BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion=0x0300 +BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev=0x0 + bootloader = $(word 8,$(subst /, ,$(BUILD_STR))) ifneq ($(CONFIG_EDK2_CUSTOM_BUILD_PARAMS),)