
From: Simon Glass <sjg@chromium.org> The 'smbios' command has its own code for parsing SMBIOS tables. There in also lib/smbios-parser.c which parses tables, although only version 2. This series moved parsing to lib/ and rationalises the code a little. It also adds support for a few more tables. Finally, a hook is added so operation from coreboot can be tested on ellesmere. Changes in v2: - Fix the return values on error Simon Glass (10): hooks: ellesmere: Add a coreboot board hooks: Add ellesmere riscv64_spl board coreboot: Increase the cyclic limit smbios: x86: Enable command by default smbios: Rename smbios_header() smbios: Move some parsing code to smbios-parser.c smbios: Create a function to locate the tables smbios: Pass smbios_info to smbios_next_table() smbios: coreboot: Update smbios_get_header() to use smbios_info smbios: Add support for showing table types 16 and 19 board/coreboot/coreboot/sysinfo.c | 12 +- cmd/Kconfig | 1 + cmd/smbios.c | 184 +++++++++++------- configs/chromebook_link_defconfig | 1 + configs/coreboot_defconfig | 1 + include/smbios.h | 82 +++++++- include/smbios_def.h | 34 ++++ lib/Kconfig | 1 + lib/efi_loader/efi_tcg2.c | 3 +- lib/smbios-parser.c | 143 ++++++++++---- test/hooks/bin/ellesmere/conf.coreboot_qemu | 28 +++ .../bin/ellesmere/conf.qemu-riscv64_spl_na | 1 + 12 files changed, 370 insertions(+), 121 deletions(-) create mode 100644 test/hooks/bin/ellesmere/conf.coreboot_qemu create mode 120000 test/hooks/bin/ellesmere/conf.qemu-riscv64_spl_na -- 2.43.0 base-commit: 711a77d57380f21ddd90ba4884ce0a7ae8f0e591 branch: loado2