summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-20 19:49:27 -0600
committerTom Rini <trini@konsulko.com>2018-07-26 15:49:40 -0400
commit2547e91dc15e5203e15d4ebde9172174743b14a7 (patch)
tree570756ec15da747b04636a511efcd2cea2c89f51 /Makefile
parent9f8aba7a0d03ba54b097e7a16428e634602909ee (diff)
downloadu-boot-2547e91dc15e5203e15d4ebde9172174743b14a7.tar.gz
u-boot-2547e91dc15e5203e15d4ebde9172174743b14a7.tar.bz2
u-boot-2547e91dc15e5203e15d4ebde9172174743b14a7.zip
tegra: Indicate that binman makes all three output files
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 79cbad22db..a3d9df81a6 100644
--- 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)