* [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag
@ 2014-11-19 17:51 Fabio Porcedda
2014-11-28 13:10 ` Fabio Porcedda
2014-12-03 18:17 ` Yann E. MORIN
0 siblings, 2 replies; 5+ messages in thread
From: Fabio Porcedda @ 2014-11-19 17:51 UTC (permalink / raw)
To: buildroot
Because it's just checked the presence of the "s" character even a
make --warn-undefined-variables
is detected as a silent build so fix this by filtering out long options.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
---
Notes:
v4:
- split this patch from the patch set to send to muster as bugfix
v2:
- remove spurious space at the beginning of the QUIET variable (Arnout)
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 471edf9..6b97dc6 100644
--- a/Makefile
+++ b/Makefile
@@ -303,7 +303,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
TARGETS :=
# silent mode requested?
-QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
+QUIET := $(if $(findstring s, $(filter-out --%, $(MAKEFLAGS))),-q)
# Strip off the annoying quoting
ARCH := $(call qstrip,$(BR2_ARCH))
--
2.1.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag
2014-11-19 17:51 [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag Fabio Porcedda
@ 2014-11-28 13:10 ` Fabio Porcedda
2014-12-03 18:17 ` Yann E. MORIN
1 sibling, 0 replies; 5+ messages in thread
From: Fabio Porcedda @ 2014-11-28 13:10 UTC (permalink / raw)
To: buildroot
On Wed, Nov 19, 2014 at 6:51 PM, Fabio Porcedda
<fabio.porcedda@gmail.com> wrote:
> Because it's just checked the presence of the "s" character even a
> make --warn-undefined-variables
> is detected as a silent build so fix this by filtering out long options.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> ---
>
> Notes:
> v4:
> - split this patch from the patch set to send to muster as bugfix
> v2:
> - remove spurious space at the beginning of the QUIET variable (Arnout)
>
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
ping?
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag
2014-11-19 17:51 [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag Fabio Porcedda
2014-11-28 13:10 ` Fabio Porcedda
@ 2014-12-03 18:17 ` Yann E. MORIN
2014-12-09 17:48 ` Fabio Porcedda
1 sibling, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2014-12-03 18:17 UTC (permalink / raw)
To: buildroot
Fabio, All,
On 2014-11-19 18:51 +0100, Fabio Porcedda spake thusly:
> Because it's just checked the presence of the "s" character even a
> make --warn-undefined-variables
> is detected as a silent build so fix this by filtering out long options.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> ---
>
> Notes:
> v4:
> - split this patch from the patch set to send to muster as bugfix
> v2:
> - remove spurious space at the beginning of the QUIET variable (Arnout)
>
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 471edf9..6b97dc6 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -303,7 +303,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
> TARGETS :=
>
> # silent mode requested?
> -QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
> +QUIET := $(if $(findstring s, $(filter-out --%, $(MAKEFLAGS))),-q)
Please, do not add a space after the comma when calling a macro. This
should be:
QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q)
Yes, that's slightly less readable. But make really cuts on commas, and
the sapce is then part of the values, so we do not want it (it has no
impact in your case, though, but: consistency! ;-) )
Otherwise, looks good to me.
Regards,
Yann E. MORIN.
>
> # Strip off the annoying quoting
> ARCH := $(call qstrip,$(BR2_ARCH))
> --
> 2.1.3
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag
2014-12-03 18:17 ` Yann E. MORIN
@ 2014-12-09 17:48 ` Fabio Porcedda
2014-12-23 8:58 ` Fabio Porcedda
0 siblings, 1 reply; 5+ messages in thread
From: Fabio Porcedda @ 2014-12-09 17:48 UTC (permalink / raw)
To: buildroot
On Wed, Dec 3, 2014 at 7:17 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Fabio, All,
>
> On 2014-11-19 18:51 +0100, Fabio Porcedda spake thusly:
>> Because it's just checked the presence of the "s" character even a
>> make --warn-undefined-variables
>> is detected as a silent build so fix this by filtering out long options.
>>
>> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
>> Cc: Arnout Vandecappelle <arnout@mind.be>
>> ---
>>
>> Notes:
>> v4:
>> - split this patch from the patch set to send to muster as bugfix
>> v2:
>> - remove spurious space at the beginning of the QUIET variable (Arnout)
>>
>> Makefile | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile b/Makefile
>> index 471edf9..6b97dc6 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -303,7 +303,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
>> TARGETS :=
>>
>> # silent mode requested?
>> -QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
>> +QUIET := $(if $(findstring s, $(filter-out --%, $(MAKEFLAGS))),-q)
>
> Please, do not add a space after the comma when calling a macro. This
> should be:
>
> QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q)
>
> Yes, that's slightly less readable. But make really cuts on commas, and
> the sapce is then part of the values, so we do not want it (it has no
> impact in your case, though, but: consistency! ;-) )
Ok done, i will push an updated path set.
> Otherwise, looks good to me.
>
> Regards,
> Yann E. MORIN.
>
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag
2014-12-09 17:48 ` Fabio Porcedda
@ 2014-12-23 8:58 ` Fabio Porcedda
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Porcedda @ 2014-12-23 8:58 UTC (permalink / raw)
To: buildroot
On Tue, Dec 9, 2014 at 6:48 PM, Fabio Porcedda <fabio.porcedda@gmail.com> wrote:
> On Wed, Dec 3, 2014 at 7:17 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
>> Fabio, All,
>>
>> On 2014-11-19 18:51 +0100, Fabio Porcedda spake thusly:
>>> Because it's just checked the presence of the "s" character even a
>>> make --warn-undefined-variables
>>> is detected as a silent build so fix this by filtering out long options.
>>>
>>> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
>>> Cc: Arnout Vandecappelle <arnout@mind.be>
>>> ---
>>>
>>> Notes:
>>> v4:
>>> - split this patch from the patch set to send to muster as bugfix
>>> v2:
>>> - remove spurious space at the beginning of the QUIET variable (Arnout)
>>>
>>> Makefile | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 471edf9..6b97dc6 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -303,7 +303,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)
>>> TARGETS :=
>>>
>>> # silent mode requested?
>>> -QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q)
>>> +QUIET := $(if $(findstring s, $(filter-out --%, $(MAKEFLAGS))),-q)
>>
>> Please, do not add a space after the comma when calling a macro. This
>> should be:
>>
>> QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q)
>>
>> Yes, that's slightly less readable. But make really cuts on commas, and
>> the sapce is then part of the values, so we do not want it (it has no
>> impact in your case, though, but: consistency! ;-) )
>
> Ok done, i will push an updated path set.
>
>> Otherwise, looks good to me.
I've sent an updated version:
http://patchwork.ozlabs.org/patch/423608/
BR
--
Fabio Porcedda
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-23 8:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-19 17:51 [Buildroot] [PATCH v4] Makefile: improve detection of make "-s" flag Fabio Porcedda
2014-11-28 13:10 ` Fabio Porcedda
2014-12-03 18:17 ` Yann E. MORIN
2014-12-09 17:48 ` Fabio Porcedda
2014-12-23 8:58 ` Fabio Porcedda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox