[PATCH v2] optee: Correct dependencies for BOOTM_OPTEE

Tom Rini trini at konsulko.com
Fri Mar 20 18:24:58 CET 2026


As exposed by "make randconfig", we have an issue with the dependencies
for BOOTM_OPTEE. This symbol needs to select BOOTM_LINUX and in turn
depend on the library symbols that have to be enabled for BOOTM_LINUX to
be valid (LIB_BOOTI, LIB_BOOTM and LIB_BOOTZ).

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Changes in v2:
- Make this depend on LIB_BOOT[IMZ] as that is the library symbol for
  both xPL and full U-Boot to support boot[imz] and related boot flows.

Cc: "Bryan O'Donoghue" <bryan.odonoghue at linaro.org>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Marek Vasut <marek.vasut at mailbox.org>
Cc: Patrice Chotard <patrice.chotard at foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Cc: u-boot at dh-electronics.com
---
 lib/optee/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig
index 34b9d8afe675..e0de57e29306 100644
--- a/lib/optee/Kconfig
+++ b/lib/optee/Kconfig
@@ -40,6 +40,7 @@ config OPTEE_TZDRAM_SIZE
 
 config BOOTM_OPTEE
 	bool "Support OPTEE bootm command"
+	depends on LIB_BOOTI || LIB_BOOTM || LIB_BOOTZ
 	select BOOTM_LINUX
 	select OPTEE_IMAGE
 	help
-- 
2.43.0



More information about the U-Boot mailing list