binman: Allow selection of logging verbosity
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:11 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:51:00 +0000 (13:51 +0800)
Support a new BINMAN_VERBOSE option to the build, to allow passing the
-v flag to binman.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Makefile
tools/binman/README

index 9ea602bdf07412d578a182d44f92b2a45916c2db..b68cbaf4377f279b160e56796a8789381607ecf3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1214,7 +1214,8 @@ u-boot.ldr:       u-boot
 quiet_cmd_binman = BINMAN  $@
 cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
                 --toolpath $(objtree)/tools \
-                build -u -d u-boot.dtb -O . -m \
+               $(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \
+               build -u -d u-boot.dtb -O . -m \
                -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
                $(BINMAN_$(@F))
 
index b4f6392ab7455d8409d672bd42df0484b237cdd4..8e0f0a8c55b7d54a48f50aa0e712125dfa3e14ae 100644 (file)
@@ -934,6 +934,12 @@ BINMAN_DEBUG=1 to your build:
    make sandbox_defconfig
    make BINMAN_DEBUG=1
 
+To enable verbose logging from binman, base BINMAN_VERBOSE to your build, which
+adds a -v<level> option to the call to binman:
+
+   make sandbox_defconfig
+   make BINMAN_VERBOSE=5
+
 
 History / Credits
 -----------------