mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! security: optee: add helpers to register OF overlays
@ 2026-02-26 10:20 Ahmad Fatoum
  2026-02-26 12:08 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-02-26 10:20 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

security: optee: fixup: emit stubs if CONFIG_OF_FIXUP_OPTEE disabled

sandbox allyesconfig build fails, because it has CONFIG_HAVE_OPTEE=y,
but no CONFIG_OF_FIXUP_OPTEE.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/tee/optee.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/include/tee/optee.h b/include/tee/optee.h
index 535811278d21..c25a9922e3d8 100644
--- a/include/tee/optee.h
+++ b/include/tee/optee.h
@@ -38,8 +38,6 @@ int optee_verify_header (const struct optee_header *hdr);
 void optee_set_membase(const struct optee_header *hdr);
 int optee_get_membase(u64 *membase);
 void optee_handoff_overlay(void *ovl, unsigned int ovl_sz);
-void optee_register_overlay(void);
-bool optee_overlay_registered(void);
 
 #else
 
@@ -56,6 +54,12 @@ static inline void optee_handoff_overlay(void *ovl, unsigned int ovl_sz)
 {
 }
 
+#endif /* CONFIG_HAVE_OPTEE */
+
+#ifdef CONFIG_OF_FIXUP_OPTEE
+void optee_register_overlay(void);
+bool optee_overlay_registered(void);
+#else
 static inline void optee_register_overlay(void)
 {
 }
@@ -64,8 +68,7 @@ static inline bool optee_overlay_registered(void)
 {
 	return false;
 }
-
-#endif /* CONFIG_HAVE_OPTEE */
+#endif /* CONFIG_OF_FIXUP_OPTEE */
 
 #ifdef __PBL__
 
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fixup! security: optee: add helpers to register OF overlays
  2026-02-26 10:20 [PATCH] fixup! security: optee: add helpers to register OF overlays Ahmad Fatoum
@ 2026-02-26 12:08 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-02-26 12:08 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Thu, 26 Feb 2026 11:20:41 +0100, Ahmad Fatoum wrote:
> security: optee: fixup: emit stubs if CONFIG_OF_FIXUP_OPTEE disabled
> 
> sandbox allyesconfig build fails, because it has CONFIG_HAVE_OPTEE=y,
> but no CONFIG_OF_FIXUP_OPTEE.
> 
> 

Applied, thanks!

[1/1] fixup! security: optee: add helpers to register OF overlays
      https://git.pengutronix.de/cgit/barebox/commit/?id=2ac598b0e4aa (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-26 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-26 10:20 [PATCH] fixup! security: optee: add helpers to register OF overlays Ahmad Fatoum
2026-02-26 12:08 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox