Skip to contentSkip to conversation

spl: Fix SPL_ATF and SPL_OPENSBI dependencies

PATCH In review Samuel Holland 2 participants 2 messages Oct 31, 2022 – Nov 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: Fix SPL_ATF and SPL_OPENSBI dependencies

The code for these two options depends on having the FIT loadables recorded in the FDT. Thus, these options require the full version of the SPL_LOAD_FIT code.

---

 common/spl/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
common/spl/Kconfig +3 -1
index b738c749ff..4d4fa58c0c 100644
@@ -1439,7 +1439,8 @@ config SPL_YMODEM_SUPPORT
 
 config SPL_ATF
 	bool "Support ARM Trusted Firmware"
-	depends on ARM64 && SPL_FIT
+	depends on ARM64
+	depends on SPL_LOAD_FIT && !SPL_FIT_IMAGE_TINY
 	help
 	  ATF(ARM Trusted Firmware) is a component for ARM AArch64 which
 	  is loaded by SPL (which is considered as BL2 in ATF terminology).
@@ -1486,6 +1487,7 @@ config SPL_OPTEE_IMAGE
 config SPL_OPENSBI
 	bool "Support RISC-V OpenSBI"
 	depends on RISCV && SPL_RISCV_MMODE && RISCV_SMODE
+	depends on SPL_LOAD_FIT && !SPL_FIT_IMAGE_TINY
 	help
 	  OpenSBI is an open-source implementation of the RISC-V Supervisor Binary
 	  Interface (SBI) specification. U-Boot supports the OpenSBI FW_DYNAMIC
Signature · 1 line
2.37.3
#1 lore raw
Quoted 5 lines · Samuel Holland

The code for these two options depends on having the FIT loadables recorded in the FDT. Thus, these options require the full version of the SPL_LOAD_FIT code.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom