From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 2/3] mk: allow use of environment var for template Date: Fri, 04 Aug 2017 00:42:54 +0200 Message-ID: <1926257.pNRFXqBP4n@xps> References: <1495788764-37652-2-git-send-email-david.hunt@intel.com> <1496846277-280267-1-git-send-email-david.hunt@intel.com> <1496846277-280267-3-git-send-email-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, shreyansh.jain@nxp.com To: David Hunt Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 103F81F5 for ; Fri, 4 Aug 2017 00:42:56 +0200 (CEST) In-Reply-To: <1496846277-280267-3-git-send-email-david.hunt@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 07/06/2017 16:37, David Hunt: > Added new environment variable RTE_TEMPLATE which is an additional > variable that can be set in the users environment. This maps on to the > existing 'T' command line variable typically used when 'make config' > or 'make install' is invoked. > > So, instead of typing 'make config T=x86_64-native-linuxapp-gcc', the user > can now do 'export RTE_TEMPLATE=x86_64-native-linuxapp-gcc' followed by > 'make config'. If the user instead chooses to 'make install', this will > do the configure, build, and install in one step. [...] > --- a/mk/rte.sdkinstall.mk > +++ b/mk/rte.sdkinstall.mk > @@ -47,6 +47,10 @@ ifneq ($(MAKECMDGOALS),pre_install) > include $(RTE_SDK)/mk/rte.vars.mk > endif > > +ifndef T > +T := $(RTE_TEMPLATE) > +endif "make install T=" is an old syntax. We should drop this non-standard syntax. So I prefer we do not encourage it with this variable. > --- a/mk/rte.sdkroot.mk > +++ b/mk/rte.sdkroot.mk > +ifdef RTE_TEMPLATE > +RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(RTE_TEMPLATE) > +endif What is the benefit of exporting RTE_TEMPLATE instead of T= ? I am afraid it get more confusion.