From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] common: PBL_OPTEE: Allow to compile in THUMB2 mode
Date: Mon, 30 Jun 2025 10:01:22 +0200 [thread overview]
Message-ID: <20250630080122.1441484-1-s.hauer@pengutronix.de> (raw)
OP-TEE gained support for jumping back to the normal world in THUMB2
mode in commit 3d80ccc97 ("core: Allow non-secure context restore in
thumb mode"). The first OP-TEE release with this commit is 3.11.0. Allow
to compile barebox in THUMB2 mode with PBL_OPTEE enabled and update the
help text.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
common/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/Kconfig b/common/Kconfig
index 39a597bb70..0651f955dc 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1408,15 +1408,15 @@ config BOOTM_OPTEE
config PBL_OPTEE
bool "Enable OP-TEE early start"
depends on ARM
- depends on !THUMB2_BAREBOX
select HAVE_OPTEE
help
Allows starting OP-TEE during lowlevel initialization of the PBL.
Requires explicit support in the board's lowlevel file (for ARM32)
or the generic SoC support (for ARM64).
- The trampoline for jumping back from OP-TEE to barebox does currently
- not handle THUMB2, so barebox must be built either for A32 or A64.
+ OP-TEE versions older than 3.11.0 do not support jumping back from OP-TEE
+ to barebox in THUMB2 mode. Make sure you do not compile barebox in THUMB2
+ mode for OP-TEE versions older than this.
config FILETYPE_STRINGS
bool "Print file types as strings"
--
2.39.5
next reply other threads:[~2025-06-30 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 8:01 Sascha Hauer [this message]
2025-07-02 6:14 ` 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=20250630080122.1441484-1-s.hauer@pengutronix.de \
--to=s.hauer@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