]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile: binman: Search board directory before srctree
authorWadim Egorov <w.egorov@phytec.de>
Fri, 15 May 2026 05:43:27 +0000 (07:43 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 May 2026 15:48:35 +0000 (09:48 -0600)
A file like rm-cfg.yaml accidentally left in the source tree root
shadows the board-specific copy. binman builds the wrong YAML, the
resulting rm-cfg.bin may match a different SoC, and we end up with
the following error:

  k3_system_controller sysctrler: k3_sysctrler_start:
      Boot Notification response failed. ret = -110

Move the board directory ahead of the srctree root so that the
most-specific match wins.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile

index 7e87b4f65f282547da40e8934f343d99eb5fff1e..71d28d06bb8f0f7106d1c01e8f7b48cad6fb3c5b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1685,7 +1685,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
                build -u -d $(binman_dtb) -O . -m \
                --allow-missing --fake-ext-blobs \
                $(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \
-               -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
+               -I . -I $(srctree)/board/$(BOARDDIR) -I $(srctree) \
                $(foreach f,$(of_list_dirs),-I $(f)) -a of-list=$(of_list) \
                $(foreach f,$(BINMAN_INDIRS),-I $(f)) \
                -a atf-bl1-path=${BL1} \