From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] mk: allow exec-env specific targets Date: Tue, 6 Jun 2017 14:35:28 +0530 Message-ID: <20170606090527.GB25773@jerin> References: <20170606063650.31434-1-jerin.jacob@caviumnetworks.com> <1514064.RDqP8U0lKr@xps> <20170606070213.GA32334@jerin> <8755040.9J4WnU9ERX@xps> <20170606075042.GA10303@jerin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03hn0221.outbound.protection.outlook.com [104.47.41.221]) by dpdk.org (Postfix) with ESMTP id 2ADD337A2 for ; Tue, 6 Jun 2017 11:05:45 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170606075042.GA10303@jerin> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Tue, 6 Jun 2017 13:20:42 +0530 > From: Jerin Jacob > To: Thomas Monjalon > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] mk: allow exec-env specific targets > User-Agent: Mutt/1.8.3 (2017-05-23) > > -----Original Message----- > > Date: Tue, 06 Jun 2017 09:16:34 +0200 > > From: Thomas Monjalon > > To: Jerin Jacob > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH] mk: allow exec-env specific targets > > > > 06/06/2017 09:02, Jerin Jacob: > > > From: Thomas Monjalon > > > > 06/06/2017 08:36, Jerin Jacob: > > > > > Add a hook in generic rte.sdkbuild.mk file > > > > > to include exec-env specific targets. > > > > > > > > > > Signed-off-by: Jerin Jacob > > > > > --- > > > > > Useful in integrating some custom targets in nonstandard execution environments. > > > > > For example, a bare-metal-simulator exec execution environment may need > > > > > a target to run the dpdk applications. > > > > > --- > > > > > > > > This patch is just including an empty file. > > > > > > Do you like to add check for the file is present or not ? and if present, > > > invoke the file. > > > > The dash prefixing does the check: > > -include > > OK > > > > > > > Please explain how it can help with a real example. > > > > > > We are evaluating on running DPDK on a nonstandard execution environment like > > > bare metal where I would to keep all my execution environment specific > > > change at following location. So that I can easy move around different > > > version of DPDK without merge conflict. > > > > > > $(RTE_SDK)mk/exec-env/my-exec-env > > > $(RTE_SDK)lib/librte_eal/my-exec-env > > > > > > I believe, The existing target like "exec-env-appinstall" in mk/exec-env/linuxapp/rte.app.mk, > > > solves the same purpose. > > > > I do not understand. > > If you want to add a new environment, why not just adding it? > > I do not understand it either. In exiting makefile infrastructure, > How do you add an exec environment specific target(s) with out changing > the common code? As disucssed in IRC, I will send the v2 with following changes, - Change mk/exec-env/$(RTE_EXEC_ENV)/rte.extra.mk to mk/exec-env/$(RTE_EXEC_ENV)/rte.custom.mk - Remove empty files and include through -include > > >