mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master 3/5] efi: payload: handover: fix filetype match
Date: Fri,  7 Nov 2025 15:17:20 +0100	[thread overview]
Message-ID: <20251107141725.2590394-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20251107141725.2590394-1-a.fatoum@pengutronix.de>

An EFI stubbed x86 Linux bzImage is no longer a filetype_exe due to the
introduction of filetype_x86_linux_image / filetype_x86_efi_linux_image.

Use the new filetype to fix the handover boot.

Fixes: 7b0cedb9ddb4 ("efi: payload: split image handling from legacy
                      handover boot and add linux x86 image filetype")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 efi/payload/handover.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/efi/payload/handover.c b/efi/payload/handover.c
index 658f3600d6a6..12fd6d95c2e8 100644
--- a/efi/payload/handover.c
+++ b/efi/payload/handover.c
@@ -127,15 +127,15 @@ static int do_bootm_efi(struct image_data *data)
 	return 0;
 }
 
-static struct image_handler efi_handle_tr = {
+static struct image_handler efi_x86_linux_handle_handover = {
 	.name = "EFI Application",
 	.bootm = do_bootm_efi,
-	.filetype = filetype_exe,
+	.filetype = filetype_x86_efi_linux_image,
 };
 
 static int efi_register_handover_handler(void)
 {
-	register_image_handler(&efi_handle_tr);
+	register_image_handler(&efi_x86_linux_handle_handover);
 	return 0;
 }
 late_efi_initcall(efi_register_handover_handler);
-- 
2.47.3




  parent reply	other threads:[~2025-11-07 14:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-07 14:17 [PATCH master 1/5] efi: payload: drop unreferenced efi_do_execute_image() Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 2/5] filetype: introduce separate filetype_x86_efi_linux_image Ahmad Fatoum
2025-11-07 14:17 ` Ahmad Fatoum [this message]
2025-11-07 14:17 ` [PATCH master 4/5] efi: payload: reinstate error message when booting non-EFI stubbed kernel Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 5/5] efi: payload: align kernel boot status messages Ahmad Fatoum
2025-11-10  8:20 ` [PATCH master 1/5] efi: payload: drop unreferenced efi_do_execute_image() Sascha Hauer

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=20251107141725.2590394-3-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox