]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Pass the toolpath to binman from the main Makefile
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:10 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:51:00 +0000 (13:51 +0800)
Pass in the toolpath in case binman needs to use tools compiled in the
U-Boot tools/ directory.

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

index 54da5cd51cea5cb4aa46bd94b928de082e4926a7..9ea602bdf07412d578a182d44f92b2a45916c2db 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1213,6 +1213,7 @@ u-boot.ldr:       u-boot
 # Use 'make BINMAN_DEBUG=1' to enable debugging
 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 \
                -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
                $(BINMAN_$(@F))