U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
@ 2018-07-21  1:49 Simon Glass
  2018-07-23 15:27 ` Stephen Warren
  2018-07-26 19:55 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 7+ messages in thread
From: Simon Glass @ 2018-07-21  1:49 UTC (permalink / raw)
  To: u-boot

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>
---

 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4b3023b259..489b3deef3 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)
-- 
2.18.0.233.g985f88cf7e-goog

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-26 19:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21  1:49 [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files Simon Glass
2018-07-23 15:27 ` Stephen Warren
2018-07-26 19:37   ` Stephen Warren
2018-07-26 19:39     ` Tom Rini
2018-07-26 19:45       ` Tom Warren
2018-07-26 19:38   ` Simon Glass
2018-07-26 19:55 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox