From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id A32A458FF for ; Fri, 19 Jul 2013 21:17:53 +0200 (CEST) Received: by mail-wg0-f41.google.com with SMTP id y10so851959wgg.4 for ; Fri, 19 Jul 2013 12:18:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=BJrR5Q6G+WS30VuAR8kTp1Mg9wACwIKPyIdwiMSueQg=; b=Jf9ozKqQ1YaOduRB/J6mCGybnvEeCE5xHBEjIxmNVD85EjUtEdkqFMd+3umaxhwHEA siL3vxR6q5NHy4d/cYeXDstzFLgAa79mpybrjdYh5iYOTv5Skujmu+N3rRQoi+pgPMz8 925/VAOpE7dlZdPwWcizpSvIsEyqKsqXQ9MY2Xkl2MMikNXfvMHJkhdncvrC5peANLok hK71RKV+3ocfLl/wglTM6pjS4QdnbwBIZ4t0FUy1Z9/7fjX8KSASFYFVznZlCLe8Ykxt LQdDLiQpqnsHOUul0kWYOgpr6+RXgU7xr7D2Z7n9as3ye4I+1qbTUQpOMFiKUPcOqkfk 1/VA== X-Received: by 10.180.185.84 with SMTP id fa20mr23883082wic.49.1374261494318; Fri, 19 Jul 2013 12:18:14 -0700 (PDT) Received: from saturne.dev.6wind.com ([2a01:e35:8a8e:1b70:226:b9ff:fec7:e133]) by mx.google.com with ESMTPSA id fb9sm50338394wid.2.2013.07.19.12.18.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Jul 2013 12:18:13 -0700 (PDT) Message-ID: <51E990F3.1020809@6wind.com> Date: Fri, 19 Jul 2013 21:18:11 +0200 From: Vincent JARDIN Organization: www.6wind.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: dev@dpdk.org References: <3bd9ee985e2d0ce0d2780ba0160ecd31bb502878.1374243470.git.thomas.monjalon@6wind.com> In-Reply-To: <3bd9ee985e2d0ce0d2780ba0160ecd31bb502878.1374243470.git.thomas.monjalon@6wind.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQk5KFWKysRy4aSRDgT+pdfHVB3Jq9jNRiVin5Qy0Orkrkp3lPqyqqRCzgGLQPe5qnHRGeS7 Subject: Re: [dpdk-dev] [PATCH 1/2] mk: add rule to print version number 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, 19 Jul 2013 19:17:53 -0000 it is just look n feel, just push it. Acked-by: vincent.jardin@6wind.com On 19/07/2013 16:19, Thomas Monjalon wrote: > The version string is extracted from rte_version.h. > RTE_VER_* macros are concatenated and separators " . . r " are inserted. > > Signed-off-by: Thomas Monjalon > --- > mk/rte.sdkconfig.mk | 6 ++++++ > mk/rte.sdkroot.mk | 4 ++-- > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk > index 2c071a2..6eb389c 100644 > --- a/mk/rte.sdkconfig.mk > +++ b/mk/rte.sdkconfig.mk > @@ -31,6 +31,12 @@ > # > # version: DPDK.L.1.2.3-3 > > +.PHONY: showversion > +showversion: > + @sed -rn 's,^#define RTE_VER_[A-Z_]*[[:space:]]+([0-9]+).*,\1,p' \ > + $(RTE_SRCDIR)/lib/librte_eal/common/include/rte_version.h | \ > + tr '\n' '.' | sed -r 's,\.([0-9]+)\.$$,r\1\n,' > + > INSTALL_CONFIGS := $(filter-out %~,\ > $(patsubst $(RTE_SRCDIR)/config/defconfig_%,%,\ > $(wildcard $(RTE_SRCDIR)/config/defconfig_*))) > diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk > index 905b678..b5126c0 100644 > --- a/mk/rte.sdkroot.mk > +++ b/mk/rte.sdkroot.mk > @@ -87,8 +87,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n > .PHONY: default > default: all > > -.PHONY: config showconfigs > -config showconfigs: > +.PHONY: config showconfigs showversion > +config showconfigs showversion: > $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ > > .PHONY: test fast_test ring_test mempool_test >