From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 50FDF2C17 for ; Wed, 7 Jun 2017 14:07:55 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2017 05:07:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,311,1493708400"; d="scan'208";a="1157627312" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.28]) by fmsmga001.fm.intel.com with SMTP; 07 Jun 2017 05:07:52 -0700 Received: by (sSMTP sendmail emulation); Wed, 07 Jun 2017 13:07:52 +0100 Date: Wed, 7 Jun 2017 13:07:51 +0100 From: Bruce Richardson To: Shreyansh Jain Cc: "Hunt, David" , dev@dpdk.org, thomas@monjalon.net Message-ID: <20170607120751.GA59616@bricha3-MOBL3.ger.corp.intel.com> References: <1495535304-159542-3-git-send-email-david.hunt@intel.com> <1495788764-37652-1-git-send-email-david.hunt@intel.com> <1495788764-37652-2-git-send-email-david.hunt@intel.com> <9f34de63-beea-fdd6-47c4-4ce3a8208b02@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f34de63-beea-fdd6-47c4-4ce3a8208b02@nxp.com> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.1 (2017-04-11) Subject: Re: [dpdk-dev] [PATCH v2 1/2] mk: allow use of environment var for make config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 12:07:56 -0000 On Wed, Jun 07, 2017 at 05:16:18PM +0530, Shreyansh Jain wrote: > On Wednesday 07 June 2017 03:58 PM, Hunt, David wrote: > > Hi Shreyansh, > > > > > > On 7/6/2017 10:36 AM, Shreyansh Jain wrote: > > > Hello David, > > > > > > On Wednesday 07 June 2017 02:09 PM, Hunt, David wrote: > > > > Shreyansh, > > > > > > > > I found an issue (or two) with this part of the patch, and > > > > have a proposed solution. > > > > > > > > 1. RTE_TARGET originally had a different meaning. It was used > > > > for making examples, specifying the target directory of where > > > > the SDK was built. It's not good to re-purpose this for > > > > something else, as I'm doing in this patch. (even though I'm not > > > > sure that variable is suitably named in the first place, but > > > > that's a different issue). > > > > > > Even I didn't realize this until you highlighted here. > > > > > > > 2. If we set RTE_TARGET on the environment, we will break the > > > > 'make -C examples/', unless we set RTE_TARGET to be > > > > something else (i.e. 'make -C examples/ RTE_TARGET=build'). > > > > One value for making DPDK, and another for building examples. > > > > It's confusing to the user. > > > > > > Agree about re-using RTE_TARGET is breaking existing assumption about > > > its use. > > > > > > > > > > > An alternative patch would be as follows: > > > > > > > > RTE_CONFIG_TEMPLATE := > > > > ifdef T > > > > *-ifeq ("$(origin T)", "command line")* > > > > RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(T) > > > > *-endif** > > > > *endif > > > > export RTE_CONFIG_TEMPLATE > > > So, that would mean, user would do either of the following: > > > > > > make T=