diff options
| author | Padmarao Begari <[email protected]> | 2025-11-04 18:27:25 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-12-19 08:25:26 +0100 |
| commit | 24308102cdce8301e10600b112ed68028fde7cd7 (patch) | |
| tree | 5ecd6a6934201eaf4506293e21214d30e41e4325 | |
| parent | 930eff5416ea98ebd09cec73f5d06a7033b4d52e (diff) | |
board: xilinx: Update ESRT after copying GUID
The EFI System Resource Table (ESRT) is updated after the firmware
image GUID is copied to the fw_images structure. This ensures that
the ESRT accurately reflects the current firmware resources.
Signed-off-by: Padmarao Begari <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | board/xilinx/common/board.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 26facb6daea..ab50a795e6b 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -766,6 +766,17 @@ int fwu_platform_hook(struct udevice *dev, struct fwu_data *data) /* Copy image type GUID */ memcpy(&fw_images[0].image_type_id, &img_entry->image_type_guid, 16); + if (IS_ENABLED(CONFIG_EFI_ESRT)) { + efi_status_t ret; + + /* Rebuild the ESRT to reflect any updated FW images. */ + ret = efi_esrt_populate(); + if (ret != EFI_SUCCESS) { + log_warning("ESRT update failed\n"); + return ret; + } + } + return 0; } |
