diff options
author | Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | 2024-06-24 16:23:32 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-08-19 14:30:20 +0000 |
commit | 1a8b9c20f8de41a8f027ff54a614b8c1ac9bcff8 (patch) | |
tree | 1b05711f3b861d761ad48bb59bb023944ac94b68 /src/lib | |
parent | 2355aa7d3ba490512483925b6362ec45064a8c0f (diff) |
drivers/efi: add optional ESRT-friendly coreboot table tag
EFI System Resource Table (ESRT) is an informational structure that
reports basic details about current system or device firmware. This is
chiefly used to perform firmware updates.
New CONFIG_DRIVERS_EFI_FW_INFO is off by default, enabling it adds
DRIVERS_EFI_FW_{GUID,VERSION,LSV} to be used to specify firmware
version/update information.
Existing forms of versions wouldn't be sufficient because there is no
universal way of converting string versions to 32-bit unsigned integers
and there are no GUIDs or lowest supported versions.
Change-Id: Ic1b768d7bed43edf7ca8e41552087734054de033
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83421
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: coreboot org <coreboot.org@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/coreboot_table.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index d7b6126385..913588feb6 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -536,6 +536,10 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end) if (CONFIG(SMMSTORE_V2)) lb_smmstorev2(head); + /* Add information about firmware in form suitable for EFI updates. */ + if (CONFIG(DRIVERS_EFI_FW_INFO)) + lb_efi_fw_info(head); + /* Add board-specific table entries, if any. */ lb_board(head); |