summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:11:10 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:51:00 +0800
commit8fce3f29e4ad4d0cf2084ef63d46aa391ebbc1d7 (patch)
treec172712c780c06a6f25b2a941c6a343b6aaf996c /Makefile
parent0e23d7660a06978d8953cbeedd931ab0df01294f (diff)
downloadu-boot-8fce3f29e4ad4d0cf2084ef63d46aa391ebbc1d7.tar.gz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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))