From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: [PATCH 1/2] drivers: add common folder Date: Tue, 20 Mar 2018 20:08:43 +0530 Message-ID: <20180320143842.GA15117@ltp-pvn> References: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Shreyansh Jain , jerin.jacob@caviumnetworks.com, lironh@marvell.com, Bruce Richardson , fiona.trahe@intel.com, Hemant Agrawal Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by dpdk.org (Postfix) with ESMTP id 5D0971F1C for ; Tue, 20 Mar 2018 15:38:59 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Shreyansh, On Mon, Mar 19, 2018 at 04:05:13PM +0530, Shreyansh Jain wrote: > Hi Pavan, > > On Mon, Mar 19, 2018 at 2:57 PM, Pavan Nikhilesh > wrote: > > Add driver/common folder and skeleton makefile for adding commonly used > > functions across mempool, event and net devices. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > drivers/Makefile | 14 ++++++++------ > > drivers/common/Makefile | 7 +++++++ > > drivers/common/meson.build | 6 ++++++ > > drivers/meson.build | 9 +++++---- > > 4 files changed, 26 insertions(+), 10 deletions(-) > > create mode 100644 drivers/common/Makefile > > create mode 100644 drivers/common/meson.build > > > > diff --git a/drivers/Makefile b/drivers/Makefile > > index ee65c87b0..bd83ad9f3 100644 > > --- a/drivers/Makefile > > +++ b/drivers/Makefile > > @@ -4,17 +4,19 @@ > > include $(RTE_SDK)/mk/rte.vars.mk > > > > DIRS-y += bus > > +DIRS-y += common > > +DEPDIRS-common := bus > > Why should common be dependent on bus? Shouldn't common be independent > in itself? Yup will send out v2 soon. > > > DIRS-y += mempool > > -DEPDIRS-mempool := bus > > +DEPDIRS-mempool := bus common > > DIRS-y += net > > -DEPDIRS-net := bus mempool > > +DEPDIRS-net := bus common mempool > > DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += bbdev > > -DEPDIRS-bbdev := bus mempool > > +DEPDIRS-bbdev := bus common mempool > > DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto > > -DEPDIRS-crypto := bus mempool > > +DEPDIRS-crypto := bus common mempool > > DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event > > -DEPDIRS-event := bus mempool net > > +DEPDIRS-event := bus common mempool net > > DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += raw > > -DEPDIRS-raw := bus mempool net event > > +DEPDIRS-raw := bus common mempool net event > > [...] > > - > Shreyansh Thanks, Pavan.