aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-20 21:58:23 +0200
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:31 +0200
commit4e6b5d6503ce8f16f00df4aedd137e919026dfad (patch)
tree8b721e1fde6b17f202b771eb947e4fe216cb3f60 /cmd
parent506dc52d5da1b6fea15da39904487c4b0218eaf2 (diff)
downloadu-boot-4e6b5d6503ce8f16f00df4aedd137e919026dfad.zip
u-boot-4e6b5d6503ce8f16f00df4aedd137e919026dfad.tar.gz
u-boot-4e6b5d6503ce8f16f00df4aedd137e919026dfad.tar.bz2
efi_loader: create root node
Currently we assign a lot of protocols to loaded images though these protocols are not related to them. Instead they should be installed on a separate handle. Via the device path it is the parent to the devices like the network adapter. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index c8812b0..5fc054c 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -49,6 +49,11 @@ efi_status_t efi_init_obj_list(void)
if (ret != EFI_SUCCESS)
goto out;
+ /* Initialize root node */
+ ret = efi_root_node_register();
+ if (ret != EFI_SUCCESS)
+ goto out;
+
/* Initialize EFI driver uclass */
ret = efi_driver_init();
if (ret != EFI_SUCCESS)