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

* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
  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:38   ` Simon Glass
  2018-07-26 19:55 ` [U-Boot] " Tom Rini
  1 sibling, 2 replies; 7+ messages in thread
From: Stephen Warren @ 2018-07-23 15:27 UTC (permalink / raw)
  To: u-boot

On 07/20/2018 07:49 PM, Simon Glass wrote:
> 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.

Tested-by: Stephen Warren <swarren@nvidia.com>

(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!)

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

* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
  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:38   ` Simon Glass
  1 sibling, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2018-07-26 19:37 UTC (permalink / raw)
  To: u-boot

On 07/23/2018 09:27 AM, Stephen Warren wrote:
> On 07/20/2018 07:49 PM, Simon Glass wrote:
>> 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.
> 
> Tested-by: Stephen Warren <swarren@nvidia.com>
> 
> (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.

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

* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
  2018-07-23 15:27 ` Stephen Warren
  2018-07-26 19:37   ` Stephen Warren
@ 2018-07-26 19:38   ` Simon Glass
  1 sibling, 0 replies; 7+ messages in thread
From: Simon Glass @ 2018-07-26 19:38 UTC (permalink / raw)
  To: u-boot

Hi Stephen,

On 23 July 2018 at 09:27, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 07/20/2018 07:49 PM, Simon Glass wrote:
>>
>> 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.
>
>
> Tested-by: Stephen Warren <swarren@nvidia.com>
>
> (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

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

* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
  2018-07-26 19:37   ` Stephen Warren
@ 2018-07-26 19:39     ` Tom Rini
  2018-07-26 19:45       ` Tom Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2018-07-26 19:39 UTC (permalink / raw)
  To: u-boot

On Thu, Jul 26, 2018 at 01:37:31PM -0600, Stephen Warren wrote:
> On 07/23/2018 09:27 AM, Stephen Warren wrote:
> >On 07/20/2018 07:49 PM, Simon Glass wrote:
> >>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.
> >
> >Tested-by: Stephen Warren <swarren@nvidia.com>
> >
> >(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
-------------- 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>

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

* [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files
  2018-07-26 19:39     ` Tom Rini
@ 2018-07-26 19:45       ` Tom Warren
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Warren @ 2018-07-26 19:45 UTC (permalink / raw)
  To: u-boot

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 <trini@konsulko.com> 
Sent: Thursday, July 26, 2018 12:40 PM
To: Stephen Warren <swarren@wwwdotorg.org>
Cc: Simon Glass <sjg@chromium.org>; U-Boot Mailing List <u-boot@lists.denx.de>; Stephen Warren <swarren@nvidia.com>; Tom Warren <TWarren@nvidia.com>
Subject: Re: [PATCH] tegra: Indicate that binman makes all three output files

On Thu, Jul 26, 2018 at 01:37:31PM -0600, Stephen Warren wrote:
> On 07/23/2018 09:27 AM, Stephen Warren wrote:
> >On 07/20/2018 07:49 PM, Simon Glass wrote:
> >>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.
> >
> >Tested-by: Stephen Warren <swarren@nvidia.com>
> >
> >(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.
-----------------------------------------------------------------------------------

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

* [U-Boot] tegra: Indicate that binman makes all three output files
  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:55 ` Tom Rini
  1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2018-07-26 19:55 UTC (permalink / raw)
  To: u-boot

On Fri, Jul 20, 2018 at 07:49:27PM -0600, Simon Glass wrote:

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

Applied to u-boot/master, thanks!

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

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.