Skip to contentSkip to conversation

tpl: Correct dependencies for TPL_OF_CONTROL

PATCH In review Tom Rini 1 participant 2 messages Mar 23 – Apr 7

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 tpl: Correct dependencies for TPL_OF_CONTROL

The TPL_OF_CONTROL option can only select TPL_OF_LIBFDT functionality if we also have enabled TPL_LIBGENERIC_SUPPORT, so express this dependency in Kconfig.

---
This is a step in the right direction, I think. There is however a larger web to untangle here.

---
 dts/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dts/Kconfig +1 -1
index 169abe607837..6b501c2239ed 100644
@@ -59,7 +59,7 @@ config SPL_OF_CONTROL
 config TPL_OF_CONTROL
 	bool "Enable run-time configuration via Device Tree in TPL"
 	depends on TPL && OF_CONTROL
-	select TPL_OF_LIBFDT if !TPL_OF_PLATDATA
+	select TPL_OF_LIBFDT if !TPL_OF_PLATDATA && TPL_LIBGENERIC_SUPPORT
 	select TPL_OF_REAL if !TPL_OF_PLATDATA
 	help
 	  Some boards use device tree in U-Boot but only have 4KB of SRAM
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

The TPL_OF_CONTROL option can only select TPL_OF_LIBFDT functionality if we also have enabled TPL_LIBGENERIC_SUPPORT, so express this dependency in Kconfig.

Applied to u-boot/master, thanks!

[1/1] tpl: Correct dependencies for TPL_OF_CONTROL

      commit: 9eb3592cbcb318a84c8ed29e432dc01c69a2bc75
Signature · 1 line
Tom