All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] binman: Add option for pointing to external description
@ 2024-10-07 13:05 Michal Simek
  2024-10-09  1:55 ` Simon Glass
  0 siblings, 1 reply; 12+ messages in thread
From: Michal Simek @ 2024-10-07 13:05 UTC (permalink / raw)
  To: u-boot, git, Simon Glass
  Cc: AKASHI Takahiro, Andrew Davis, Bryan Brattlof,
	Heinrich Schuchardt, Ilias Apalodimas, Leon M. Busch-George,
	Rasmus Villemoes, Sean Anderson, Sughosh Ganu, Sumit Garg,
	Tom Rini

Adding binman node with target images description can be unwanted feature
but as of today there is no way to disable it.
Also on size constrained systems it is not useful to add binman description
to DTB.
Introduce BINMAN_EXTERNAL_DTB Kconfig symbol which allows separate DTB for
target from DTB for binman itself.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 Makefile    |  2 +-
 lib/Kconfig | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index af24de4165e4..8043016ac279 100644
--- a/Makefile
+++ b/Makefile
@@ -1384,7 +1384,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
 		$(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \
                 --toolpath $(objtree)/tools \
 		$(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \
-		build -u -d u-boot.dtb -O . -m \
+		build -u -d $(CONFIG_BINMAN_EXTERNAL_DTB) -O . -m \
 		--allow-missing $(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \
 		-I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
 		$(foreach f,$(of_list_dirs),-I $(f)) -a of-list=$(of_list) \
diff --git a/lib/Kconfig b/lib/Kconfig
index 1448b4ac2d64..491f265012b8 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -45,6 +45,16 @@ config BINMAN_FDT
 	  locate entries in the firmware image. See binman.h for the available
 	  functionality.
 
+config BINMAN_EXTERNAL_DTB
+	string "External binman description"
+	depends on BINMAN
+	default "u-boot.dtb"
+	help
+	  This enables option to point to different DTB file with binman node which
+	  is outside of DTB used by the firmware. Use this option if information
+	  about generated images shouldn't be the part of target binary. Or on system
+	  with limited storage.
+
 config CC_OPTIMIZE_LIBS_FOR_SPEED
 	bool "Optimize libraries for speed"
 	help
-- 
2.43.0


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

end of thread, other threads:[~2024-10-18 14:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07 13:05 [PATCH] binman: Add option for pointing to external description Michal Simek
2024-10-09  1:55 ` Simon Glass
2024-10-09 13:21   ` Michal Simek
2024-10-09 21:14     ` Simon Glass
2024-10-10 13:03       ` Michal Simek
2024-10-15 12:48         ` Simon Glass
2024-10-16  5:59           ` Michal Simek
2024-10-17 17:54             ` Tom Rini
2024-10-18  5:57               ` Michal Simek
2024-10-17 23:23             ` Simon Glass
2024-10-18  6:01               ` Michal Simek
2024-10-18 14:59                 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.