diff mbox series

[U-Boot,02/26] binman: Add docs explaining how to enable binman for a board

Message ID 20171113045231.15911-3-sjg@chromium.org
State Accepted
Commit 9c0a8b1f44a18343acb48a7b6cf6ec724a7fac93
Delegated to: Simon Glass
Headers show
Series test: Include Python tools in test coverage | expand

Commit Message

Simon Glass Nov. 13, 2017, 4:52 a.m. UTC
The process is not obvious. Add a little section to explain how to move a
board to use binman.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/binman/README | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Comments

Simon Glass Nov. 24, 2017, 1:47 a.m. UTC | #1
The process is not obvious. Add a little section to explain how to move a
board to use binman.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/binman/README | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Applied to u-boot-dm thanks!
diff mbox series

Patch

diff --git a/tools/binman/README b/tools/binman/README
index 63f97226429..4ef76c8f089 100644
--- a/tools/binman/README
+++ b/tools/binman/README
@@ -206,6 +206,27 @@  for its instructions in the 'binman' node.
 Binman has a few other options which you can see by running 'binman -h'.
 
 
+Enabling binman for a board
+---------------------------
+
+At present binman is invoked from a rule in the main Makefile. Typically you
+will have a rule like:
+
+ifneq ($(CONFIG_ARCH_<something>),)
+u-boot-<your_suffix>.bin: <input_file_1> <input_file_2> checkbinman FORCE
+	$(call if_changed,binman)
+endif
+
+This assumes that u-boot-<your_suffix>.bin is a target, and is the final file
+that you need to produce. You can make it a target by adding it to ALL-y
+either in the main Makefile or in a config.mk file in your arch subdirectory.
+
+Once binman is executed it will pick up its instructions from a device-tree
+file, typically <soc>-u-boot.dtsi, where <soc> is your CONFIG_SYS_SOC value.
+You can use other, more specific CONFIG options - see 'Automatic .dtsi
+inclusion' below.
+
+
 Image description format
 ------------------------