Skip to contentSkip to conversation

lib: Fix BINMAN_FDT dependency

PATCH New Bin Meng 2 participants 6 messages Feb 3, 2021 – Feb 7, 2021 Library code

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/2 lib: Fix BINMAN_FDT dependency

lib/binman.c references the following 3 ofnode APIs:
ofnode_first_subnode(), ofnode_path() and ofnode_read_bool().

These APIs get built only when DM is on. Fix the dependency then.

---

 lib/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig +1 -1
index b35a71a..7f4c30e 100644
@@ -22,7 +22,7 @@ config BCH
 
 config BINMAN_FDT
 	bool "Allow access to binman information in the device tree"
-	depends on BINMAN && OF_CONTROL
+	depends on BINMAN && DM && OF_CONTROL
 	default y
 	help
 	  This enables U-Boot to access information about binman entries,
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 2/2 dts: Fix OF_LIVE dependency

lib/of_live.c references the following 2 ofnode APIs:
of_alias_scan() and of_get_property().

These APIs get built only when DM is on. Fix the dependency then.

---

 dts/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dts/Kconfig +1 -1
index 71f5055..00ac29a 100644
@@ -60,7 +60,7 @@ config TPL_OF_CONTROL
 
 config OF_LIVE
 	bool "Enable use of a live tree"
-	depends on OF_CONTROL
+	depends on DM && OF_CONTROL
 	help
 	  Normally U-Boot uses a flat device tree which saves space and
 	  avoids the need to unpack the tree before use. However a flat
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 dts: Fix OF_LIVE dependency

Quoted 4 lines · Bin Meng

lib/of_live.c references the following 2 ofnode APIs:
of_alias_scan() and of_get_property().

Quoted 8 lines

These APIs get built only when DM is on. Fix the dependency then.

---

 dts/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#5 lore raw

PATCH 1/2 lib: Fix BINMAN_FDT dependency

In reply to Simon Glass
Quoted 11 lines · Bin Meng

lib/binman.c references the following 3 ofnode APIs:
ofnode_first_subnode(), ofnode_path() and ofnode_read_bool().

These APIs get built only when DM is on. Fix the dependency then.

---

 lib/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm, thanks!