Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Makefile: remove redundant ifdef V
@ 2015-04-07  4:08 Masahiro Yamada
  2015-04-07  4:19 ` Baruch Siach
  0 siblings, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2015-04-07  4:08 UTC (permalink / raw)
  To: buildroot

If "V" is not defined, "$(origin V)" returns "undefined".
"ifdev V" is redundant.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d6426b3..9db52a8 100644
--- a/Makefile
+++ b/Makefile
@@ -184,10 +184,8 @@ endif
 
 # To put more focus on warnings, be less verbose as default
 # Use 'make V=1' to see the full commands
-ifdef V
-  ifeq ("$(origin V)", "command line")
-    KBUILD_VERBOSE = $(V)
-  endif
+ifeq ("$(origin V)", "command line")
+  KBUILD_VERBOSE = $(V)
 endif
 ifndef KBUILD_VERBOSE
   KBUILD_VERBOSE = 0
-- 
1.9.1

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

* [Buildroot] [PATCH] Makefile: remove redundant ifdef V
  2015-04-07  4:08 [Buildroot] [PATCH] Makefile: remove redundant ifdef V Masahiro Yamada
@ 2015-04-07  4:19 ` Baruch Siach
  2015-04-07  4:36   ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2015-04-07  4:19 UTC (permalink / raw)
  To: buildroot

Hi Masahiro Yamada,

On Tue, Apr 07, 2015 at 01:08:16PM +0900, Masahiro Yamada wrote:
> If "V" is not defined, "$(origin V)" returns "undefined".
> "ifdev V" is redundant.

V is not defined in code but ...

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
> 
>  Makefile | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index d6426b3..9db52a8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -184,10 +184,8 @@ endif
>  
>  # To put more focus on warnings, be less verbose as default
>  # Use 'make V=1' to see the full commands

... as this comment says, you can define V manually on the make invocation 
command line. That is its intended use.

> -ifdef V
> -  ifeq ("$(origin V)", "command line")
> -    KBUILD_VERBOSE = $(V)
> -  endif
> +ifeq ("$(origin V)", "command line")
> +  KBUILD_VERBOSE = $(V)
>  endif
>  ifndef KBUILD_VERBOSE
>    KBUILD_VERBOSE = 0

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] [PATCH] Makefile: remove redundant ifdef V
  2015-04-07  4:19 ` Baruch Siach
@ 2015-04-07  4:36   ` Masahiro Yamada
  2015-04-07  4:50     ` Baruch Siach
  0 siblings, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2015-04-07  4:36 UTC (permalink / raw)
  To: buildroot

Hi.


2015-04-07 13:19 GMT+09:00 Baruch Siach <baruch@tkos.co.il>:
> Hi Masahiro Yamada,
>
> On Tue, Apr 07, 2015 at 01:08:16PM +0900, Masahiro Yamada wrote:
>> If "V" is not defined, "$(origin V)" returns "undefined".
>> "ifdev V" is redundant.
>
> V is not defined in code but ...

Right.

V=1 is supposed to be passed from the command line,
like Linux, U-Boot, barebox, busybox and other projects that use Kbuild.


>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>
>>  Makefile | 6 ++----
>>  1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/Makefile b/Makefile
>> index d6426b3..9db52a8 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -184,10 +184,8 @@ endif
>>
>>  # To put more focus on warnings, be less verbose as default
>>  # Use 'make V=1' to see the full commands
>
> ... as this comment says, you can define V manually on the make invocation
> command line. That is its intended use.


Right. I do understand this.

I am afraid you are misunderstanding my patch.


I recommend you to read the git-log of
commit b8b0618cf6fab3bd5b1da8c72f4b29847d81ac42  of Linux Kernel.



-- 
Best Regards
Masahiro Yamada

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

* [Buildroot] [PATCH] Makefile: remove redundant ifdef V
  2015-04-07  4:36   ` Masahiro Yamada
@ 2015-04-07  4:50     ` Baruch Siach
  0 siblings, 0 replies; 4+ messages in thread
From: Baruch Siach @ 2015-04-07  4:50 UTC (permalink / raw)
  To: buildroot

Hi Masahiro Yamada,
On Tue, Apr 07, 2015 at 01:36:39PM +0900, Masahiro Yamada wrote:
> 2015-04-07 13:19 GMT+09:00 Baruch Siach <baruch@tkos.co.il>:
> > On Tue, Apr 07, 2015 at 01:08:16PM +0900, Masahiro Yamada wrote:
> >> If "V" is not defined, "$(origin V)" returns "undefined".
> >> "ifdev V" is redundant.
> >
> > V is not defined in code but ...
> 
> Right.
> 
> V=1 is supposed to be passed from the command line,
> like Linux, U-Boot, barebox, busybox and other projects that use Kbuild.
> 
> >> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> >> ---
> >>
> >>  Makefile | 6 ++----
> >>  1 file changed, 2 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/Makefile b/Makefile
> >> index d6426b3..9db52a8 100644
> >> --- a/Makefile
> >> +++ b/Makefile
> >> @@ -184,10 +184,8 @@ endif
> >>
> >>  # To put more focus on warnings, be less verbose as default
> >>  # Use 'make V=1' to see the full commands
> >
> > ... as this comment says, you can define V manually on the make invocation
> > command line. That is its intended use.
> 
> Right. I do understand this.
> 
> I am afraid you are misunderstanding my patch.
> 
> 
> I recommend you to read the git-log of
> commit b8b0618cf6fab3bd5b1da8c72f4b29847d81ac42  of Linux Kernel.

Thanks for the pointer. This is clearer now. Please update the commit log of 
your patch to include a more verbose explanation, like the kernel commit log 
you pointed.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

end of thread, other threads:[~2015-04-07  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07  4:08 [Buildroot] [PATCH] Makefile: remove redundant ifdef V Masahiro Yamada
2015-04-07  4:19 ` Baruch Siach
2015-04-07  4:36   ` Masahiro Yamada
2015-04-07  4:50     ` Baruch Siach

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