summaryrefslogtreecommitdiff
path: root/boot/bootmeth_efi_mgr.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-07-31 00:52:21 +0300
committerTom Rini <trini@konsulko.com>2022-08-12 15:17:10 +0300
commitbc06aa035d8f78a713a3d339d45f3d05ef0f0d67 (patch)
tree4869d2b427ae2bd73839b0d254f593fa3a51f744 /boot/bootmeth_efi_mgr.c
parenta18686cda14cf0281a00fe1cd44c2647d351d4aa (diff)
downloadu-boot-bc06aa035d8f78a713a3d339d45f3d05ef0f0d67.tar.xz
bootstd: Allow bootmeths to be marked as global
The current way of handling things like EFI bootmgr is a bit odd, since that bootmeth handles selection of the bootdev itself. VBE needs to work the same way, so we should support it properly. Add a flag that indicates that the bootmeth is global, rather than being invoked on each bootdev. Provide a helper to read a bootflow from the bootmeth. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/bootmeth_efi_mgr.c')
-rw-r--r--boot/bootmeth_efi_mgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/bootmeth_efi_mgr.c b/boot/bootmeth_efi_mgr.c
index a6914466db..08d9328af4 100644
--- a/boot/bootmeth_efi_mgr.c
+++ b/boot/bootmeth_efi_mgr.c
@@ -61,6 +61,7 @@ static int bootmeth_efi_mgr_bind(struct udevice *dev)
struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev);
plat->desc = "EFI bootmgr flow";
+ plat->flags = BOOTMETHF_GLOBAL;
return 0;
}
@@ -77,7 +78,7 @@ static const struct udevice_id efi_mgr_bootmeth_ids[] = {
{ }
};
-U_BOOT_DRIVER(bootmeth_zefi_mgr) = {
+U_BOOT_DRIVER(bootmeth_efi_mgr) = {
.name = "bootmeth_efi_mgr",
.id = UCLASS_BOOTMETH,
.of_match = efi_mgr_bootmeth_ids,