From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE
Date: Tue, 7 Jul 2026 09:59:43 +0200 [thread overview]
Message-ID: <20260707075943.122401-1-a.fatoum@pengutronix.de> (raw)
barebox PBL expects OP-TEE at the end of the initial memory, which
doesn't make sense for barebox as EFI app as the initial memory is just
16M of freshly allocated EFI memory.
Booting barebox via the EFI stub while OPTEE support is enabled will
thus normally hang. Until the PBL OPTEE code is adapted, refuse this
bogus configuration.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
efi/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/efi/Kconfig b/efi/Kconfig
index 9c559207e95c..b8f118a8812f 100644
--- a/efi/Kconfig
+++ b/efi/Kconfig
@@ -5,6 +5,7 @@ menu "EFI (Extensible Firmware Interface) Support"
config EFI_PAYLOAD
bool "barebox as EFI payload/app (consumer)"
depends on HAVE_EFI_PAYLOAD || COMPILE_TEST
+ depends on !HAVE_OPTEE
select PBL_FULLY_PIC if ARM64
select EFI
select EFI_GUID
--
2.47.3
next reply other threads:[~2026-07-07 9:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 7:59 Ahmad Fatoum [this message]
2026-07-09 6:15 ` 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=20260707075943.122401-1-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