[PATCH v5 1/8] binman: add $(srctree)/tools to toolpath

Casey Connolly caleb.connolly at linaro.org
Tue Jul 22 17:34:51 CEST 2025


From: Casey Connolly <casey.connolly at linaro.org>

Not all tools need building, look in the srctree toolpath as well as
the objtree.

Signed-off-by: Casey Connolly <casey.connolly at linaro.org>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 93e9f4018423..5b361a0ee398 100644
--- a/Makefile
+++ b/Makefile
@@ -1603,8 +1603,13 @@ else
 binman_dtb = ./u-boot.dtb
 endif
 endif
 
+# Not all tools are in the output dir, use the srctree toolpath as well
+ifneq ($(srctree),$(objtree))
+BINMAN_TOOLPATHS += $(srctree)/tools
+endif
+
 quiet_cmd_binman = BINMAN  $@
 cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
 		$(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \
                 --toolpath $(objtree)/tools \

-- 
2.50.1



More information about the U-Boot mailing list