From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0059.outbound.protection.outlook.com [104.47.42.59]) by dpdk.org (Postfix) with ESMTP id 9AABF9E3 for ; Mon, 12 Jun 2017 10:37:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wDoT7AHDhbaECAxUibE2JG/VzOHpD94GW9MFsTT1Ohk=; b=YGpE1hwotGugeUUT40L+YabHS+KXY0YC+J9Uaa17qVANwUygaBn1eEWSS47ngsCzoSjHPljVIQueMwv7LAT/Rl5Fynen+WVgMtfcpTYiD+N5rbpVYR9iAVb7N/EVMKRn3JKC7nZGohjL7ScpjeXG55CmeVUWXZUpODihQt7PY+M= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 12 Jun 2017 08:37:51 +0000 Date: Mon, 12 Jun 2017 14:07:35 +0530 From: Jerin Jacob To: David Hunt Cc: dev@dpdk.org, thomas@monjalon.net, shreyansh.jain@nxp.com Message-ID: <20170612083734.GB16518@jerin> 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-Disposition: inline In-Reply-To: <1496846277-280267-3-git-send-email-david.hunt@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (10.174.208.21) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: 05defb90-8763-4427-0a58-08d4b16e5129 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:fJg9TDLY4zo4y/u7ESPEO8zcqIZ9KVm9lmd3m/RutA1kLiOrakw0/Amx0AKr9FdI3OmiUwneNcKu6VpvK6JHdlZSQoxSPUsW9eb0ac2ekzOYhTYe/lCI4WtmZ1g/UMU80Xy+6Fo5qrwbg/6sKkg2Te+RJSbyafwwxyIa4eU9OyEbq2JY9sWxC+AhdBHKZCQzcEAbK/f8JI048PReQzXxGZGr93EnqawyTbfw2UcPeUOjn7gCl2PuiDQH5wCshplTo+4XE11iSAhSSCBQ1QR0bB3jwyvGbTUgjOMrJw5rIiF/vDCvoR13tdcXQ0QaRMCur6al4L9pYJtTRNkUwazuuw==; 25:mQRB3bG6mwoldRDQQLpB3Gkzg6OqSaYFYYyVsFve0RVQYb5U3k3xGH2hqu9nxZgCVbnJt8I9kfdcyjioejdRWlLdPFptc8etwPVLyIT5y/h576pBthmgoQsYazyOmlnHLe1ms+RCQ5x5IVDQC3CmbvjtZnfYYP7bYxbWYdakEsKTjLccamQ0RPXzrc/9ASieX1iiT3cSjAlkHaMCJuohE72/tbBhrQjUvBwYYasW2a8RlyFLodZy1EbYYrIUH04h8un7gaidZgehidKGkr4WS2P9kNTQHKEEMAQrfFzjbzyMI5Lm1f27g4BNJ6t5lWdQIOFoMt8PF8IZ71Y2xoHwGUBLsol+ZAug8E4BrYzKchmLti4iYedJSYPP/GsfvCOQCpKD//Y5Oe3zun3hPQqaThO6jfcGVBHmRR+n5V1W+hgHTosX2zbWrzrUvjFWGSF9HprqXOjEciUOXbbvXGVwx9FUmN0LHET3DF153gnlE5I= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:+fzXIlqcAGKXWA5wrz2uFzHS+zrBNm9IfKdHWuTVXpbM7dnSIPL3nqL1ytYWfak2AiLku23imT/ylqnjVn0cXhW7fyg20TWLyyNWZUBowc5/D/2IrrAwGyQKJA+ZFj+GY1MdkwWM5jfYhJJ3i+qRmLlbsqlOcT8oG2GL/S/tqyPG56+VEZmHyicbkTlLX+MbP4dwgCQEcoJh1HeSMyW8FaXNxrB+/8Kb8JE1Y59LlThe/T4ozNyBMx/g6kMUFkOzNLdKwJJr6AME/bK2Pzn7dQ==; 20:l9Y7mN+EI3xWhTiOui/mBxDiNlgiIdpd++bIK6CyJv7N27KF9t6ZI213uZTukKZma0Q2EPnKQukGrqCMA6UzbxCaIJjzAhL+RCp+XEqhcTi6GOJU0lvGaX2HN6s/od/EYUxIpxm97Td9GdPf8AA0yGEdyr3gcqcI84HOLR74B3I+StDMf0NrL6hKyeTyiwr/dVRlwzf155rMU8CElo15MrmadrdCm+M8jW6ikyoVXUV5uEXPKF3tHtj23vd6K8dJj7C91SdOSN3q0HibwgBdgOgjw+akR9Fn49S4TQRa7ylA0QoC/Zq7JBqo2uPxpUr7kEOFz0znXYyVGZnKZbFGxDdg0lsFMe4uk48TfuVtNqag4aZnBcZ8jUc64yNIATdB77qoKulKppSAwYkVyIenGgCiSXVd7LaUY20rOPz+/lrtpJpdBKS22k+CKb7lPKeuwaR1BByoATCSiSWL6MM00nRdqIA/ph2iS5jsS753YEPJHNHppo3aWqH6F2tjyIIVtto6xcxN8Bgeg1qI8AeezzjfR7OFB5X4jza53VSB0O4xpdD3OJYlbhOqOAYHhDSowbvE1cnu/aI+rOuY/EbaBCKdY5SAxyAVqzwHq7H62Ao= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:fkJFm+eOxIOULapNC/I2f+yw/41c9pRj3ve8l9fq?= =?us-ascii?Q?7WgnR+nRVYF/39xSdqjCgKDm0KgQrGJNsOC+iI3XQiEqchAGLOzARcpSeV4B?= =?us-ascii?Q?h5UxOOEXWUv/Ne2U76DCxNrvBFlb1e30FPhz9QmrYhlEJKxy2yNOG7eSl1N9?= =?us-ascii?Q?SxUzztcFFqrbZXWvc+TYyWSzq2Zsul5ZfFWq/jMlcVX2GB7U36OKI4TyLyre?= =?us-ascii?Q?YppNUp3OkSm0sNlvpVAOMHxYIGnPBxZ4Epq3wz/UkcYjzrDJc4ime0UphaVo?= =?us-ascii?Q?mQuOfa/pJe+olKdK3EakLyqL0foFWP/y5kWV718JTFSlVccyx9V0XaUWXiQF?= =?us-ascii?Q?SBEB9GprPHcEI0frHSrZDxwcHc+CgWeas8L3dfhLgDUSq1s42Wb9JwFpCCs0?= =?us-ascii?Q?IWM1xABalS10nxaih0/D8VrZqdaNUqjQVRX1MULy3B+rOMjyB2tZAcaJj0lX?= =?us-ascii?Q?1uQOTpV8AAjPk+FSPls4nIzzjSi1b93MiV3hdQ1VtVRa6mvZFMzAd0Q6wiOk?= =?us-ascii?Q?3TW7LhGkrpw0WZJe4ELZjix8y9Ks2GcOnCD8eqzFMgVzgN7sJ4t+dB5l4XU5?= =?us-ascii?Q?dig8PKOvPMupJk8CyqaYJwk6d0Q+U5NKOZpRVOq2WZYGTPEhfZuj2qckeF32?= =?us-ascii?Q?5Ph30OrvPwW4HCLg11dryUqNT1UrykTzwWXeYMV2JpvRMLVb8knU1Xo8lSe7?= =?us-ascii?Q?kKkxMdue6tAX54+5BZMpzdoFzZhIg1LZsD+vsHIrP7da4Kd/TJ0osfiq872m?= =?us-ascii?Q?ubONFpbYXBbtDcIx68kA0y/PZutfJ1oiCXbaGGC+/w7Vgldr96WnZRHs+/PV?= =?us-ascii?Q?J6dOh+52Aj5QfE/t5Lx4wzyXOXI3vliHGT8MiV1wdFI4G5L9rlTv5gi8X+9v?= =?us-ascii?Q?F5rAQR92jQYdiXNoGz3A/ZNEANjxHmv5WPucJCTsKnLq5yQ6fI4qKNnb28f4?= =?us-ascii?Q?2x+P6Oz4pDoteCROZwpXFexMK3x9mSSpsXdtQOVajFyTZS8TOsO48JOk9zBP?= =?us-ascii?Q?7O349567u/wq8qaS2SEppmMpZhntPF9/9PmhfE76TXy/MsDKaLCoOIJfNdNC?= =?us-ascii?Q?gpm+MAazfkgluV4KJsgZsQ97+tgAAYo2rJD3lzXmSxCeuzIHv4/ntwIgW9DP?= =?us-ascii?Q?iXJv7N/hm3ZDEATI2lzvWqwolL2eZagBxMffBumXTUkuTwrnJeLrNt8/CnDS?= =?us-ascii?Q?banxcLHdTNnXgI4wACUkSxQJn4y1010s5UGh?= X-Forefront-PRVS: 03361FCC43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(13464003)(23726003)(305945005)(7736002)(4326008)(33656002)(42186005)(6496005)(55016002)(38730400002)(3846002)(9686003)(1076002)(5660300001)(50986999)(76176999)(5009440100003)(6246003)(110136004)(54356999)(53936002)(8656002)(6916009)(2950100002)(6666003)(66066001)(25786009)(42882006)(229853002)(47776003)(8676002)(81166006)(189998001)(2906002)(478600001)(72206003)(33716001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:xL0Cy7BOBZUUc1yEwzzG6RWOoFCrlgjcOmYLwC2?= =?us-ascii?Q?sQO2soa+2M4w6f4uryFtyaeebRWhhU60Ng3w8TdM2j2YLz0xOaxHCUQMLJq7?= =?us-ascii?Q?bRC1HMHKF/PooXD4FnYY8nJwK3GSn2joeQegMTiXq8CYhCse4X2uK24hBzg7?= =?us-ascii?Q?6jTemNqtmS2gTNlMheX47WvlLDLkpAVkFH/wsYfOtGS8RtcrTL7ssTv5cB8b?= =?us-ascii?Q?/3Wk2B7awBpb2DQq3OwNq2d5aJSle4jJAVxPlV8Na6UQGZpewHVjHNBRKXDw?= =?us-ascii?Q?zKqV+qkoF0JVn4wsbXgLKBxTMQiieAzMJ5loetOcFXnUqe3XSiqOMR+L68hf?= =?us-ascii?Q?YuCpy5j/4f5M+GkMBS0RLwOHtS16GxBtaCgz7W4/BhYp5tyGC7TdWQiKIUqQ?= =?us-ascii?Q?QL1K6hNm3dl6IKUvo+rGW/eBK8EpTVsuI39Q7Vu33cGBd7XttTtrZfZC2/kj?= =?us-ascii?Q?5r4H3zF6OJTenRqicpbAV9jZX1RUN1C4L+BnHRrtW/kXlRPY2ahXQKy8BjNA?= =?us-ascii?Q?JqdiYmhZwebqVucd/aabHf9z874Z6AVT6EywXD/OCYpnz1ot1jsuHKahzMpu?= =?us-ascii?Q?IS58dLkQ6PLsGuJVnSx359nKUWSqNSOaPEzf1173MFoIpz+DxWAB8Q42e8+Q?= =?us-ascii?Q?caXWxIDAnGSeWuFGMAm6NpRxMdzc7Y6Av5VCMG7NDToSV8v8CEom0yb9x6z8?= =?us-ascii?Q?CYQh8XcgI27LGuoQjJQeZKi4Z3qgGC9YkaoLG73pOUeunds04P4DGFjUYcK7?= =?us-ascii?Q?zsgeD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UPR0701MB1714; 5:sxMi2+GM/ZACg+IB71i6UXHmlans0ISCQ51ZAqS6rBnSLV0w2RVbRCW9RQIFbcUVRkVVF0dhH8HB5PhtJOCeNgXoJOtLPnBXohYIymHYXaUAH4ESpJJFeEB9UDIRrmO3e36+9u/7wBDrgGh9KFznEeXwJgHCAZfglMszIpYohaDbaxiN1OG3issgnPaIyNae03Xn5hzgBnnflyQ9eLznsaXHfJYxlbu4Xalfc58SjKYowrqW0iLrrul1DnVvIDz92e/VdPWh0FlrcPCtA/YmoqG+KlQ3u93gWEVP1AjED63yN8+iZ5RiL48tw6OD9T+xT51KahaMso3MRmCM+mAPAYBs97kjkB2Lm+2NYSkRn+wDkR+ZWs1zExX258ovQGGGKzU05Xq8DRJdGeU8dOOzJVNIlQ0NFvI39zYgGcSrSxL7yqPtGZvC7LYGEilNnjEhAyXiGQqU5B+WRA84dSuHOf211b7vBM5wr7Opgg3ue7qDQdFwtoh+wOSZCUfo4TZh; 24:bFhxGyLkC0BRGpE/C5hewOJx3ittckO/Ft0rjgpSDYhUHQV2LY7/3+G7BT5/I4zAKp9JzQwwCGfOk/3NWQQLxrpUwhcgDfX/8cmxzlIzya8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:nJis/bRHRQRN28/fMT760KyryGsRQxa8qxwPb2gwFdIml61QwDEWPo/ylkv9bAXq03kgARNhtrulJtcKlWyS74eSUIxFLfR9H14Nk/58ydKwVbvZZb7njx7gcXxcfn8O5+Es00EnQyBYgNwE/zLcbV90fhA9Tz/o/JQ/6h8Xt+NLSoSFV2OShT4G/C2fID9EUErGDEwAkfF03S9FdKnRg/1UCvKYjDvFmbexJ4Kyq7TB/ZvT7i0q4j/6dwHxl9LDRoKYAp405bFxYu/lzq2aneuepkc0dkzU8coUsUUSNUS6wnh0IRLDAsTYymmdFxGuM5JAZQoYXQtaLjimHhcazw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2017 08:37:51.4588 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [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: Mon, 12 Jun 2017 08:37:55 -0000 -----Original Message----- > Date: Wed, 7 Jun 2017 15:37:56 +0100 > From: David Hunt > To: dev@dpdk.org > CC: thomas@monjalon.net, shreyansh.jain@nxp.com, David Hunt > > Subject: [dpdk-dev] [PATCH v3 2/3] mk: allow use of environment var for > template > X-Mailer: git-send-email 2.7.4 > > 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 Acked-by: Jerin Jacob > --- > 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 >