diff options
| author | Tom Rini <[email protected]> | 2023-02-19 17:03:30 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-19 17:03:30 -0500 |
| commit | 4eb7c5030d3f3c707c02a64dc8ea90de3da89928 (patch) | |
| tree | 5a44e93534606e0ad7d2268dbdd326c3c93911bf /cmd | |
| parent | 1198b38ba980efed050c878c083607d997010e03 (diff) | |
| parent | 5e957ae3504290a0c62188331a429ec9b908aa1b (diff) | |
Merge tag 'efi-2023-04-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2023-04-rc3
Documentation
* Add a document for the RISC-V architecture
* Move gateworks and bcm7xxx documentation to HTML
UEFI
* measure the loaded device-tree
* make CapsuleMax configurable and provide sensible default
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/bootefi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 2a7d42925d6..6618335ddf9 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -332,6 +332,14 @@ efi_status_t efi_install_fdt(void *fdt) efi_try_purge_kaslr_seed(fdt); + if (CONFIG_IS_ENABLED(EFI_TCG2_PROTOCOL_MEASURE_DTB)) { + ret = efi_tcg2_measure_dtb(fdt); + if (ret == EFI_SECURITY_VIOLATION) { + log_err("ERROR: failed to measure DTB\n"); + return ret; + } + } + /* Install device tree as UEFI table */ ret = efi_install_configuration_table(&efi_guid_fdt, fdt); if (ret != EFI_SUCCESS) { |
