diff options
author | Tom Rini <trini@konsulko.com> | 2020-09-28 08:26:49 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-28 08:26:49 -0400 |
commit | d44d46e9fafaae85b0ebbcdc53999537a199fa2f (patch) | |
tree | 219ad9e33b8755b5188c39d063b097506d6117ff /lib/efi_loader/efi_setup.c | |
parent | 114c0ebcc10b8a0118d388adcb028b89fbde0eff (diff) | |
parent | c48e9f310b950e39a91cea74b6708dd4fe2eb39c (diff) |
Merge tag 'efi-2020-10-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-10-rc6
The following UEFI related issues are fixed:
* restore the global data pointer in the RISC-V trap handler
* install EFI_RNG_PROTOCOL only if we have a random number generator
* display human readable string for EFI_RNG_PROTOCOL in efidebug command
Diffstat (limited to 'lib/efi_loader/efi_setup.c')
-rw-r--r-- | lib/efi_loader/efi_setup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 6196c0a06cd..45226c5c1a5 100644 --- a/lib/efi_loader/efi_setup.c +++ b/lib/efi_loader/efi_setup.c @@ -151,6 +151,11 @@ efi_status_t efi_init_obj_list(void) if (ret != EFI_SUCCESS) goto out; #endif + if (IS_ENABLED(CONFIG_EFI_RNG_PROTOCOL)) { + ret = efi_rng_register(); + if (ret != EFI_SUCCESS) + goto out; + } /* Initialize variable services */ ret = efi_init_variables(); if (ret != EFI_SUCCESS) |