Skip to contentSkip to conversation

tegra: Indicate that binman makes all three output files

PATCH In review Simon Glass 4 participants 7 messages Jul 21, 2018 – Jul 26, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Makefile +3 -2
index 4b3023b259..489b3deef3 100644
@@ -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)
Signature · 1 line
2.18.0.233.g985f88cf7e-goog
#1 lore raw

PATCH 1/1 tegra: Indicate that binman makes all three output files

Quoted 6 lines · Simon Glass

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.

(This make feature is very odd; specifying n targets without a % means they're separate rules, but specifying n targets with a % means it's a single rule that generates n targets. Nice inconsistency on make's part!)

#2 lore raw

PATCH 1/1 tegra: Indicate that binman makes all three output files

Quoted 6 lines · Stephen Warren
Quoted 5 lines · Simon Glass

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.

Quoted 7 lines
Quoted 1 line

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

(This make feature is very odd; specifying n targets without a % means they're separate rules, but specifying n targets with a % means it's a single rule that generates n targets. Nice inconsistency on make's part!)

Any chance we can apply this ASAP to the main u-boot.git master branch? Pretty much all my Jenkins builds are failing some random subset of boards because of this issue. Thanks.

#3 lore raw

PATCH 1/1 tegra: Indicate that binman makes all three output files

Quoted 11 lines · Stephen Warren
Quoted 10 lines · Stephen Warren
Quoted 6 lines · Simon Glass

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.

Quoted 7 lines
Quoted 3 lines

(This make feature is very odd; specifying n targets without a % means they're separate rules, but specifying n targets with a % means it's a single rule that generates n targets. Nice inconsistency on make's part!)

Any chance we can apply this ASAP to the main u-boot.git master branch? Pretty much all my Jenkins builds are failing some random subset of boards because of this issue. Thanks.

If Tom W is fine, I'm happy to pick it up directly.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180726/8c15b615/attachment.sig>
#4 lore raw

PATCH 1/1 tegra: Indicate that binman makes all three output files

I don't usually weigh in on makefile issues, but if Stephen says it's needed, let's get it in.

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Thursday, July 26, 2018 12:40 PM
To: Stephen Warren <[email protected]>
Cc: Simon Glass <[email protected]>; U-Boot Mailing List <[email protected]>; Stephen Warren <[email protected]>; Tom Warren <[email protected]>
Subject: Re: [PATCH] tegra: Indicate that binman makes all three output files

Quoted 11 lines · Stephen Warren
Quoted 10 lines · Stephen Warren
Quoted 6 lines · Simon Glass

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.

Quoted 8 lines
Quoted 4 lines

(This make feature is very odd; specifying n targets without a % means they're separate rules, but specifying n targets with a % means it's a single rule that generates n targets. Nice inconsistency on make's part!)

Any chance we can apply this ASAP to the main u-boot.git master branch? Pretty much all my Jenkins builds are failing some random subset of boards because of this issue. Thanks.

If Tom W is fine, I'm happy to pick it up directly.

--
Tom
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

#5 lore raw

PATCH 1/1 tegra: Indicate that binman makes all three output files

In reply to Stephen Warren

Hi Stephen,

Quoted 7 lines · Stephen Warren
Quoted 6 lines · Simon Glass

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.

Quoted 8 lines
Quoted 1 line

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

(This make feature is very odd; specifying n targets without a % means they're separate rules, but specifying n targets with a % means it's a single rule that generates n targets. Nice inconsistency on make's part!)

I know. It's like they are trying to reuse syntax across different functionality. I don't really understand why, but there might be a theoretical basis.

Regards,
Simon

#6 lore raw
In reply to Simon Glass
Quoted 9 lines · Simon Glass

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180726/105c28f2/attachment.sig>