diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2019-12-29 00:01:06 +0530 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-07 18:08:22 +0100 |
commit | 33c37d9784168ac75be91e890329712d9a849539 (patch) | |
tree | 93a9cd5eb063946daa2b742323da1c2410845a26 /lib/efi_loader/efi_root_node.c | |
parent | f552fa496c9e738afa069dd33578558fe4eb41ee (diff) | |
download | u-boot-33c37d9784168ac75be91e890329712d9a849539.tar.gz u-boot-33c37d9784168ac75be91e890329712d9a849539.tar.xz u-boot-33c37d9784168ac75be91e890329712d9a849539.zip |
efi_rng_protocol: Install the efi_rng_protocol on the root node
Install the EFI_RNG_PROTOCOL implementation for it's subsequent use by
the kernel for features like kaslr.
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_root_node.c')
-rw-r--r-- | lib/efi_loader/efi_root_node.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_root_node.c b/lib/efi_loader/efi_root_node.c index f68b0fdc61..76d18fb1a4 100644 --- a/lib/efi_loader/efi_root_node.c +++ b/lib/efi_loader/efi_root_node.c @@ -81,6 +81,10 @@ efi_status_t efi_root_node_register(void) &efi_guid_hii_config_routing_protocol, (void *)&efi_hii_config_routing, #endif +#if CONFIG_IS_ENABLED(EFI_RNG_PROTOCOL) + &efi_guid_rng_protocol, + (void *)&efi_rng_protocol, +#endif NULL)); efi_root->type = EFI_OBJECT_TYPE_U_BOOT_FIRMWARE; return ret; |