From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C301468EE for ; Fri, 23 Sep 2016 11:06:41 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP; 23 Sep 2016 02:06:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,381,1470726000"; d="scan'208";a="12902209" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.63]) ([10.237.220.63]) by orsmga004.jf.intel.com with ESMTP; 23 Sep 2016 02:06:06 -0700 To: Thomas Monjalon , dev@dpdk.org References: <6873211.QDWnoOkD9j@xps13> <1474587767-20033-1-git-send-email-thomas.monjalon@6wind.com> From: Ferruh Yigit Message-ID: Date: Fri, 23 Sep 2016 10:06:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1474587767-20033-1-git-send-email-thomas.monjalon@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] mk: fix verbosity zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2016 09:06:42 -0000 On 9/23/2016 12:42 AM, Thomas Monjalon wrote: > Verbosity is considered enabled when $V is not empty. > 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 > Signed-off-by: Thomas Monjalon > --- > mk/rte.sdkroot.mk | 3 +++ > mk/rte.vars.mk | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk > index 55a9d8a..04ad523 100644 > --- a/mk/rte.sdkroot.mk > +++ b/mk/rte.sdkroot.mk > @@ -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 Why not simply: -ifdef V +ifeq ($(V),1) > ifeq ("$(origin V)", "command line") > Q= > diff --git a/mk/rte.vars.mk b/mk/rte.vars.mk > index 28982a5..c240a0e 100644 > --- a/mk/rte.vars.mk > +++ b/mk/rte.vars.mk > @@ -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= >