1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 19:05:51 +01:00

smbios: copy QEMU tables

QEMU provides SMBIOS tables with detailed information. We should not try to
replicate them in U-Boot.

If we want to inform about U-Boot, we can add a Firmware Inventory
Information (type 45) table in future.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt
2023-12-23 02:03:34 +01:00
committed by Tom Rini
parent 481ffca485
commit 1c5aab803c
5 changed files with 209 additions and 2 deletions

View File

@@ -60,7 +60,9 @@ static int install_smbios_table(void)
ulong addr;
void *buf;
if (!IS_ENABLED(CONFIG_GENERATE_SMBIOS_TABLE) || IS_ENABLED(CONFIG_X86))
if (!IS_ENABLED(CONFIG_GENERATE_SMBIOS_TABLE) ||
IS_ENABLED(CONFIG_X86) ||
IS_ENABLED(CONFIG_QFW_SMBIOS))
return 0;
/* Align the table to a 4KB boundary to keep EFI happy */