]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra: Indicate that binman makes all three output files
authorSimon Glass <sjg@chromium.org>
Sat, 21 Jul 2018 01:49:27 +0000 (19:49 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jul 2018 19:49:40 +0000 (15:49 -0400)
Use GNU make pattern rules to indicate that a single run of binman
produces all three Tegra output files. The avoids make running binman
three times (perhaps in parallel) and those instances inteferring with
each other.

See http://patchwork.ozlabs.org/patch/944611/ for the bug report.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Makefile

index 79cbad22db82502725a23845f0dd8cf4693e5d53..a3d9df81a68a193ff596d679833320fc32767dd3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1234,8 +1234,9 @@ endif
 
 ifneq ($(CONFIG_TEGRA),)
 ifneq ($(CONFIG_BINMAN),)
-u-boot-dtb-tegra.bin u-boot-tegra.bin u-boot-nodtb-tegra.bin: \
-               spl/u-boot-spl u-boot.bin FORCE
+# Makes u-boot-dtb-tegra.bin u-boot-tegra.bin u-boot-nodtb-tegra.bin
+%-dtb-tegra.bin %-tegra.bin %-nodtb-tegra.bin: \
+               spl/%-spl %.bin FORCE
        $(call if_changed,binman)
 else
 OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE)