From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 850BE2BBD for ; Wed, 7 Jun 2017 16:38:06 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 07 Jun 2017 07:38:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,311,1493708400"; d="scan'208";a="1138912803" Received: from silpixa00397898.ir.intel.com ([10.237.223.116]) by orsmga001.jf.intel.com with ESMTP; 07 Jun 2017 07:38:04 -0700 From: David Hunt To: dev@dpdk.org Cc: thomas@monjalon.net, shreyansh.jain@nxp.com, David Hunt Date: Wed, 7 Jun 2017 15:37:56 +0100 Message-Id: <1496846277-280267-3-git-send-email-david.hunt@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496846277-280267-1-git-send-email-david.hunt@intel.com> References: <1495788764-37652-2-git-send-email-david.hunt@intel.com> <1496846277-280267-1-git-send-email-david.hunt@intel.com> Subject: [dpdk-dev] [PATCH v3 2/3] mk: allow use of environment var for template 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 14:38:07 -0000 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. Signed-off-by: David Hunt Acked-by: Shreyansh Jain --- mk/rte.sdkinstall.mk | 4 ++++ mk/rte.sdkroot.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk index dbac2a2..a464b01 100644 --- 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 + ifdef T # defaults with T= will install an almost flat staging tree export prefix ?= kerneldir ?= $(prefix)/kmod diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index 076a2d7..a560230 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -63,6 +63,10 @@ ifdef T ifeq ("$(origin T)", "command line") RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(T) endif +else +ifdef RTE_TEMPLATE +RTE_CONFIG_TEMPLATE := $(RTE_SRCDIR)/config/defconfig_$(RTE_TEMPLATE) +endif endif export RTE_CONFIG_TEMPLATE -- 2.7.4