]> git.droids-corp.org - dpdk.git/commitdiff
mk: fix verbosity zero
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 22 Sep 2016 23:35:39 +0000 (01:35 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 14:21:55 +0000 (16:21 +0200)
Verbosity is considered enabled when $V is not empty.
It is a well spread shortcut in makefiles, see git grep '$(if $(*V'
So V=0 and V=1 are equivalent.
It is fixed by unsetting V when it is 0.

A side effect is to fix kernel module compilation verbosity
which is set to 0 when V is empty.

Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
mk/rte.sdkroot.mk
mk/rte.vars.mk

index 55a9d8aeca4b84629ead575e24fde3279a9ff731..04ad523bb43af628728a9d40ad64ba79ecce5b9b 100644 (file)
@@ -34,6 +34,9 @@ MAKEFLAGS += --no-print-directory
 # define Q to '@' or not. $(Q) is used to prefix all shell commands to
 # be executed silently.
 Q=@
+ifeq '$V' '0'
+override V=
+endif
 ifdef V
 ifeq ("$(origin V)", "command line")
 Q=
index 28982a5f0d6e1222bd0f31e5f0fb7d4612247127..c240a0e2a53441526a5d528c87550589d5acfe0d 100644 (file)
@@ -46,6 +46,9 @@ endif
 # define Q to '@' or not. $(Q) is used to prefix all shell commands to
 # be executed silently.
 Q=@
+ifeq '$V' '0'
+override V=
+endif
 ifdef V
 ifeq ("$(origin V)", "command line")
 Q=