From: "Ilias Apalodimas" <ilias.apalodimas@linaro.org>
To: "Heinrich Schuchardt" <heinrich.schuchardt@canonical.com>,
"Simon Glass" <sjg@chromium.org>
Cc: "Tom Rini" <trini@konsulko.com>,
"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
"Patrick Rudolph" <patrick.rudolph@9elements.com>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
<u-boot@lists.denx.de>
Subject: Re: [RFC 1/8] boot: EFI boot manager does not depend on BootOrder
Date: Fri, 02 May 2025 12:26:13 +0300 [thread overview]
Message-ID: <D9LKFIJWJXPD.CC0AEM1DDT61@linaro.org> (raw)
In-Reply-To: <20250421162555.1200687-2-heinrich.schuchardt@canonical.com>
Hi Heinrich,
On Mon Apr 21, 2025 at 7:25 PM EEST, Heinrich Schuchardt wrote:
> The EFI boot manager bootmeth does not require variable BootOrder to be
> preexisting. It creates this variable.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> boot/bootmeth_efi_mgr.c | 21 +++------------------
> 1 file changed, 3 insertions(+), 18 deletions(-)
>
> diff --git a/boot/bootmeth_efi_mgr.c b/boot/bootmeth_efi_mgr.c
> index 42b8863815e..1669cbed5bd 100644
> --- a/boot/bootmeth_efi_mgr.c
> +++ b/boot/bootmeth_efi_mgr.c
> @@ -47,30 +47,15 @@ static int efi_mgr_check(struct udevice *dev, struct bootflow_iter *iter)
>
> static int efi_mgr_read_bootflow(struct udevice *dev, struct bootflow *bflow)
> {
> - struct efi_mgr_priv *priv = dev_get_priv(dev);
> - efi_status_t ret;
> - efi_uintn_t size;
> - u16 *bootorder;
> -
> - if (priv->fake_dev) {
> - bflow->state = BOOTFLOWST_READY;
> - return 0;
> - }
This only seems to be used by sandbox AFAICT. So I think we should remove the
struct members and functions as well with this change
> + int ret
ret;
>
> ret = efi_init_obj_list();
> if (ret)
> return log_msg_ret("init", ret);
>
> - /* Enable this method if the "BootOrder" UEFI exists. */
> - bootorder = efi_get_var(u"BootOrder", &efi_global_variable_guid,
> - &size);
> - if (bootorder) {
> - free(bootorder);
> - bflow->state = BOOTFLOWST_READY;
> - return 0;
> - }
> + bflow->state = BOOTFLOWST_READY;
>
> - return -EINVAL;
> + return 0;
> }
>
> static int efi_mgr_read_file(struct udevice *dev, struct bootflow *bflow,
Other than that it looks correct
Cheers
/Ilias
next prev parent reply other threads:[~2025-05-02 9:26 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-21 16:25 [RFC 0/8] boot: run EFI boot manager after block devices Heinrich Schuchardt
2025-04-21 16:25 ` [RFC 1/8] boot: EFI boot manager does not depend on BootOrder Heinrich Schuchardt
2025-05-02 9:26 ` Ilias Apalodimas [this message]
2025-05-02 14:49 ` Simon Glass
2025-05-02 16:08 ` Heinrich Schuchardt
2025-05-03 2:10 ` Simon Glass
2025-05-03 7:04 ` Heinrich Schuchardt
2025-05-03 21:26 ` Simon Glass
2025-05-04 5:34 ` Heinrich Schuchardt
2025-05-05 19:03 ` Mark Kettenis
2025-05-05 19:51 ` Heinrich Schuchardt
2025-05-05 19:54 ` Tom Rini
2025-05-05 22:07 ` Heinrich Schuchardt
2025-05-05 22:10 ` Tom Rini
2025-05-05 23:18 ` Heinrich Schuchardt
2025-05-05 23:43 ` Tom Rini
2025-05-06 10:24 ` Mark Kettenis
2025-05-06 13:24 ` Simon Glass
2025-05-06 14:29 ` Tom Rini
2025-05-06 15:56 ` Ilias Apalodimas
2025-04-21 16:25 ` [RFC 2/8] boot: BOOTMETH_DISTRO should select BOOTMETH_EFI_BOOTMGR Heinrich Schuchardt
2025-04-23 12:28 ` Simon Glass
2025-04-23 12:53 ` Heinrich Schuchardt
2025-05-02 9:28 ` Ilias Apalodimas
2025-05-02 13:23 ` Simon Glass
2025-05-02 13:28 ` Ilias Apalodimas
2025-04-21 16:25 ` [RFC 3/8] boot: make BOOTMETH_EFILOADER default=n Heinrich Schuchardt
2025-05-02 9:30 ` Ilias Apalodimas
2025-05-02 14:49 ` Simon Glass
2025-05-02 16:16 ` Heinrich Schuchardt
2025-05-03 2:10 ` Simon Glass
2025-05-03 7:15 ` Heinrich Schuchardt
2025-05-03 21:26 ` Simon Glass
2025-04-21 16:25 ` [RFC 4/8] boot: introduce BOOTDEVP_6_EFI Heinrich Schuchardt
2025-04-21 16:25 ` [RFC 5/8] boot: prevent recursion in bootdev_hunt_drv() Heinrich Schuchardt
2025-04-21 16:25 ` [RFC 6/8] boot: make EFI boot manager bootmeth non-global Heinrich Schuchardt
2025-04-21 16:25 ` [RFC 7/8] efi_loader: create EFI BOOTDEV Heinrich Schuchardt
2025-04-23 12:28 ` Simon Glass
2025-04-23 12:50 ` Heinrich Schuchardt
2025-05-02 9:44 ` Ilias Apalodimas
2025-04-21 16:25 ` [RFC 8/8] board/emulation/qemu-arm: enable EFI boot manager Heinrich Schuchardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D9LKFIJWJXPD.CC0AEM1DDT61@linaro.org \
--to=ilias.apalodimas@linaro.org \
--cc=heinrich.schuchardt@canonical.com \
--cc=mkorpershoek@kernel.org \
--cc=patrick.rudolph@9elements.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=tuomas.tynkkynen@iki.fi \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.