From: Simon Glass <sjg@chromium.org>
Date: Wed, 25 Sep 2019 14:11:10 +0000 (-0600)
Subject: binman: Pass the toolpath to binman from the main Makefile
X-Git-Tag: v2025.01-rc5-pxa1908~2759^2~84
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=8fce3f29e4ad4d0cf2084ef63d46aa391ebbc1d7;p=u-boot.git

binman: Pass the toolpath to binman from the main Makefile

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>
---

diff --git a/Makefile b/Makefile
index 54da5cd51c..9ea602bdf0 100644
--- 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))