From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0042.outbound.protection.outlook.com [104.47.42.42]) by dpdk.org (Postfix) with ESMTP id E46C79E3 for ; Mon, 12 Jun 2017 10:37:14 +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=veKbp7knwzUd4HoSlGAbEDim1aX0RLYaTrBCW9bx3FI=; b=UhZWZhsBTgGql4nNGw4dn5P2/j7qdHeoHgtBFhORWpiquLxeCiZylG6+WTWy6taREgmfQpy9GANvQ8+0ZHGh+IK7tsXiA3IEZW2JtWDIJd93SVnwfBBoSOfldW3sC5pdqFLSg93N09kiSSz72YB3Dslfbaap4yCBhnrq1rc0r4g= 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:11 +0000 Date: Mon, 12 Jun 2017 14:06:54 +0530 From: Jerin Jacob To: David Hunt Cc: dev@dpdk.org, thomas@monjalon.net, shreyansh.jain@nxp.com Message-ID: <20170612083654.GA16518@jerin> References: <1495788764-37652-2-git-send-email-david.hunt@intel.com> <1496846277-280267-1-git-send-email-david.hunt@intel.com> <1496846277-280267-2-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-2-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: MA1PR01CA0099.INDPRD01.PROD.OUTLOOK.COM (10.174.56.143) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: 881730fc-8fe3-4a68-d83c-08d4b16e396d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:lgHZ9RSY/yPV2y1DgDoK5FHt+lMZGFFHMjDydZVBQKxNFE8FNcDx7n4Iecg4NGNGiLRFqn2EntLFge/srAf7W8dBZ7g3xCPk63vZLVyPZ2IxNHTXhOeZ4vuG+Lyzak1clZ/MWvvjfr1WSg+ASE+y/QhBOjqCXwhl0/82zlv/GCfZGo0ijqe5jAuoVgcqaa2ooDgyTW7yFyzxpLXmh8GWBKADHIUs9KpE5g4zi9jfDpL1l0IpArVBWxnA50mnuvbUDiUpa9xQiYUgN81Q0KmNnBDVsB2EIn/KzprZgkMQ0QS5QHy9zA9D6toiQJNEBgl3VY/Y67PvqlRLQ5UAR4a1Qg==; 25:ktxqjk4HqT3TsJNyRDSGFPhy6vxZ3uj1iuMFJEiybWvPRyTqo5OHrBRbVUzoV8f1K00r75xkD/lsB9+AdmRw4wXUj7IjbC41viXIjeNBfXLK6kMKYCcnxRoeB2fTfSxrWT4Ah39+/IbA28kN8SbpkS8hzQ5vHPrFoJjc56nJzdhNkUTnQuXLcuKfAnh7TWSW+u/5zIwGnRl7Z04oEweH7wetSk3xWfLHfek2o7kzsBFusPVQFDumoskAqYJ7KUUcPqtfScRcjXiwDIEfGC8gmLiKPvpY38xukBKpw9qKn3UrGxbOw7GR0Ttl+JhUr+cN7ODBdqfzCmEcaD3EbmsUemGWVvoPdp+qrUIkQVvFNawFw0qfEfNt3PM4SEKj4+gw6l+QzQNQrqoMFcciYkkazhKTfxJ0/H7IIW6qi/5l5qTr0p1BKYJ9S4IHOYNWfKG0CaCCaUPJdFuHoWFHe2EoHTzMGC2YYTmiw181+sGQXyI= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:Dolv/U7rzeEwFrk6tebKlELjd3PYkQiCFI2PKqqXGnJH9TUCH1aiV7KOECliHHkJSrczHPqBLngrKSltqqCje9XL85Iq+cSCYo3Vv6Htcio2qwHlcVKqbxDKAsrHAh7A0LV1TLyDF2ibXfeBwIdDIkLG1E1AzIa6Bl/zKOvbOLy3IEWBzKaRzYVdpVz7wHQH7pLGhhuVnelfE/Rj4D0af1fUKsKKZq38vt9IXJW7ZX7dMZm9QnA3olbI9AZun2GT0ALN9qQ66Rsi9TV3QaGNZw==; 20:gdEBQMRqGgJeERai0BJ+2gXPc3uFti6zHM/vtVOFGZT6Rg3wFyViRCME5f5yXIg+K9QvDS5VhwTVO2hd/z9DoZax0mJUUbaZ6QRh7+SFui/IlLr/OuKsALfUZqMvaQ04Aj72LjwTJvvNyMAyno/Gz7SjRGxdp3wskm0v03BmoIFPv60Pdy14+5z4RrRFnWY0ev3Kz48ZOIT1XotI6rgnafvx/3ok57s+rZXcoigD5nIQeaOOsglMwZGT3FWdGI2VOgQumsuQeTvA1befRd1/SboxfJn3wGbqN9gYQXqdPfs9WhZz8/riv64cScHNx5f4qUx//bzdPudfAEm5IX30a/d8gI3Xv4BWCqxakCNIpcCgkWc15Nr9LyRQPgcar0AEhrBI8JTOE+Gih5Fgw0HNrR6F/R4b8lyiBy0fen0u9zzD5/nhYEsIjlGYv1GPYlSr8H79AY8+ifzQj/WxiV+lk0bguqlWJ+VS/Km5DgKoGc48dlO6Z2yGDZ5SrDtr3QKEh76N5JFlsiw5I7R9clxtSwCiUEBu0VwnFOsifBIFYXdPJLFoOxiEaqN64CujebfVJyNiRW/e5nYQJJbro8CGQRNokKZAHThvHVyY4vrSrgw= 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:G8EIhwjxqsyq0jsqaOeF6Fzz6pAQclnz9iCq84eD?= =?us-ascii?Q?ap+xiH8xIELn/ihZdF61lEMTACKXoIhouaTs7d1UY/VfEifFGPEpF8xDndVT?= =?us-ascii?Q?Fmejg7WNWukE/mez+J0LIB6ZCFPhYq3gZtrcd3NvdgLt/XLJAHmJW78Juzo/?= =?us-ascii?Q?8f+19rlfVX0e0Ybw4HhCiyc3nR7S3GKKw82fN2L4PFnDGp1HV5yfGq9H2+mW?= =?us-ascii?Q?UvuyWn+3yiMblXKrfDFMeUqjIjPonRjJRUZOt/bEm1xawMPQSnI9FWWpsv2t?= =?us-ascii?Q?LOJdjx2L4LA0CtWDDiphn80Kcpgjkh2vsWXuB8xbzqKvCFBlbWAxyCSGtr2S?= =?us-ascii?Q?oQs28/YjvxkvQgD/UJ2Ic+ppJ//obdYFV3KNndrbz8BFdmeepePS6h4xeHMi?= =?us-ascii?Q?U3ibB5cPwffbabkgtfmGXMPVrcnWsqkqvv6V98TdctQEgS7M/URPsTmFpE14?= =?us-ascii?Q?Zo2shGhosrexdAhuNvGYRdK2p3Unv2xAGrTzjuWsoVSCQxC0mcarHmD2kcwv?= =?us-ascii?Q?/pjAb41k2FCTLkcI2br0WO/MQOXvvLq3B92yPbvEqHL7ioZfaDmUXuZnBIow?= =?us-ascii?Q?OwZeOhyNYwFut2e+LqRT86XKCtCMt1GD5aSvKd+r3ln9pS1sHTeDOvc8yO/j?= =?us-ascii?Q?mE7hh/aF3tz8KkUTfvB4tQCQxxZsksN31JrsIdOv7AE3J17JjlTUwjr2Gcv/?= =?us-ascii?Q?Q+ydBU+V2rj4PNPHNbQ92YpRPFD/qgzJ3nk687iUcPkfymrEDkg6PcMogRLs?= =?us-ascii?Q?KDfhq1yv8KD4qoGIOlpLAo/hw11bduBhYKx8XPJOzHGibhtKJddFH3x0TFbC?= =?us-ascii?Q?f8lXUCBO9PniEs/cj43zlBLUxr+DTxITVnr+CCR7gtWRSaIiuGNim4ZHbOc2?= =?us-ascii?Q?baHbJc6UaZDwkAUz9DjM7Jtc5TqDeyEN0+Rh3GMYro5f3T3e66yLKb3TPA8T?= =?us-ascii?Q?84slGhY90T4r5GfygJavzWkLRmsFloYu7OzmR3Q3Pk87P9uj/iUlT8veBIdi?= =?us-ascii?Q?1FQogqo0sgCknwqJMn1D0fG0lK0gQydVhJto4S6HDZOql24yTEqLIavJST39?= =?us-ascii?Q?oSbpshi22/pCgrISBZvNi22aS6QRheFNPGjKzVAsi7E/oT5Qbipy8jLrSq6r?= =?us-ascii?Q?XfEA0QZ7nxG5SDKtcKdDNKJ9Nz9O5OpPrgrnVQFz1zAAkqyj8wCDgGNzIbiz?= =?us-ascii?Q?qUo1koTy9OVdhZnjWk+/LnyPIFEPs8DbFcym?= 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:qozDxcyBQMsLeqlvlAhBKe76XemsjtoCgrxE9Cj?= =?us-ascii?Q?dvmsixroslXePYq5fK5lMoQj4FIVOKzrqYJ+HT+PHQS9jt2BYxop6UcFu2nO?= =?us-ascii?Q?Sgio8J+NxYupRfZU7cC6j0BIkldYPYPoAygqymq1Ay4zxGHp6Y9b0jdkSHPz?= =?us-ascii?Q?9+Q2UotjhZYYtdZrqerWy/2UEdgpNjQi0qYP/+lXeMi92KjOvHlK2TmniYvD?= =?us-ascii?Q?d9C3mfw7a58ZQDBg9HS7fth7tlepoc1dFoQRMQ0XvGeq/OuCsy/gcE+jQbf/?= =?us-ascii?Q?inaUZfXUSl4+X1GYMMh0C7yrWs9gZF80aaqRyhuAlATDsaC941bjxiifx9dj?= =?us-ascii?Q?LeGgJi/Ia8AulxOZJ0FIYqyNDBfiRF0FCEh/uEF4PETiTI6PdbZK8FYKnXtH?= =?us-ascii?Q?aogVfCKERV9zc2HJsVw8CxIA/2JiTpjPJp0gMv4i68zU8DTvO+S7tSreG7mO?= =?us-ascii?Q?gdm8vBsVTarie5BAeBSpq8c3TMVU/TNn6h/Tfz5ALdaBmzGGokGIusNvjZgA?= =?us-ascii?Q?xNlla1yFNAkcOgvcPsXrGgac93jewzKEbBWemHf2d5BcrMTbD1v8289R2tsw?= =?us-ascii?Q?CXW9f8tEqKaRiTVyOuJ+ks/m948OCPL3nCOETyIA8jhn5IsA/B9Cu9wN3JJQ?= =?us-ascii?Q?SwEkSiMID6QznUcdxfO0rxCgt8Gwcd4M7Fq36uor5lJVtxxkj1qdG5CFRVWu?= =?us-ascii?Q?Lk0KxDuOyBjtgrRxo5c8xFAlXAiwDL+BWNCOHHMlMqPdv2mRh9Es3RUulO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ange-Diagnostics: 1; BLUPR0701MB1714; 5:1VFg2EwjPltjftiIqnayTqdwp4mrOpgDHgb3cu66wga5hLiKiF3qzwAyNMKaAVtMKMKpASyPTWjy9KqVczU+Ae8atHZGT2TXSiHYyvAoON42Olo6Z342HocKUCRPXwoj027rEYjGLfteSNJSxIiDetukC8zTdAkMgnaNevay8iT3A0PBI8J0lrz3YdypqinVPiq10j9olV5XFvBAUQt5b4DDW3F7ATVJfwtQUt6EoB3MyuPTnTW6FSWSGdWX2J3RIT907rv/wcrWjQYeVmeqjUEWRE4fNI7cAiD7hh+He6th1u+/4Z2YxLQ7hBxXznYgbu7EPSVhFNkSGlNMuc2Mk35oZ42HAl60dr/ZURWEhNZv/Wap1zXY+8VNJzfkg0Or43NV5fMT/eXm0pbNztsrb9h0hTDw/VPI3M0Cv1XBuHqhhHdmrX3NGptW+KMlFDeSwuQJkLjRC2YenTvkBRkpL4foD3oTlxKp0XCcadGpqbadEeE72cCb4fUmFYFZJD1P; 24:osD2KkxYZIyGAzM9nLBcE8MHUiZmtCFFQIb1IQncN6hXEXQUaYaWGGAIu0JK49toI5TkeF/6YBsdzZasTvwK154nZ2My/krymj7K+UrGkV4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:i/antKuwure0xlMnIQ0y5lojgtIZl5F6bOnNJS5CiSZgKBUTouQeC2A9kxB3XftdZ4tig2b998PmS59T9VnkLUWmn7hcdABOeq+HLdncykW7XGON9VIRdnqCoGeMZSXnkTKcB1tp5gh2QV2/+JNaTLnr5DjYh4NfLbbcPg4AbGG6FE3elV4YV7YtSyOKBGIkU5U9ZvaWwF04SIGIW0vp1+ERUcxme17XBUlKl669Loc97sc5PqA0QPa7JlhA7dD0n4zq/fUOB7tElT/szp5yeg70/QQ4b/pA1vRjli1qCH/bpylO6FskNst8ZTEaO5ei04fBnOcp1oUEU/IWZIVAzQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2017 08:37:11.4569 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [PATCH v3 1/3] mk: add sensible default target with defconfig 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:15 -0000 -----Original Message----- > Date: Wed, 7 Jun 2017 15:37:55 +0100 > From: David Hunt > To: dev@dpdk.org > CC: thomas@monjalon.net, shreyansh.jain@nxp.com, David Hunt > > Subject: [dpdk-dev] [PATCH v3 1/3] mk: add sensible default target with > defconfig > X-Mailer: git-send-email 2.7.4 > > Users can now use 'make defconfig' to generate a configuration using > the most appropriate defaults for the current machine. > > > arch taken from uname -m > machine defaults to native > execenv is taken from uname, Linux=linuxapp, otherwise bsdapp > toolchain is taken from $CC -v to see which compiler to use > > Signed-off-by: David Hunt > Acked-by: Shreyansh Jain Tested on a arm64 target: Tested-by: Jerin Jacob > --- > mk/rte.sdkconfig.mk | 28 +++++++++++++++++++++++++--- > mk/rte.sdkroot.mk | 4 ++-- > 2 files changed, 27 insertions(+), 5 deletions(-) > > diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk > index 1f2d6bd..fc03fe3 100644 > --- a/mk/rte.sdkconfig.mk > +++ b/mk/rte.sdkconfig.mk > @@ -60,16 +60,38 @@ showconfigs: > > .PHONY: notemplate > notemplate: > - @printf "No template specified. " > - @echo "Use T=template among the following list:" > + @printf "No template specified. Use 'make defconfig' or " > + @echo "use T=template from the following list:" > @$(MAKE) -rR showconfigs | sed 's,^, ,' > > + > +.PHONY: defconfig > +defconfig: > + @$(MAKE) config T=$(shell \ > + uname -m | awk '{ \ > + if ($$0 == "aarch64") { \ > + print "arm64-armv8a"} \ > + else if ($$0 == "armv7l") { \ > + print "arm-armv7a"} \ > + else if ($$0 == "ppc64") { \ > + print "ppc_64-power8"} \ > + else { \ > + printf "%s-native", $$0} }')-$(shell \ > + uname | awk '{ \ > + if ($$0 == "Linux") { \ > + print "linuxapp"} \ > + else { \ > + print "bsdapp"} }')-$(shell \ > + ${CC} -v 2>&1 | \ > + grep " version " | cut -d ' ' -f 1) > + > .PHONY: config > ifeq ($(RTE_CONFIG_TEMPLATE),) > config: notemplate > else > config: $(RTE_OUTPUT)/include/rte_config.h $(RTE_OUTPUT)/Makefile > - @echo "Configuration done" > + @echo "Configuration done using "$(shell basename \ > + $(RTE_CONFIG_TEMPLATE) | sed "s/defconfig_//g") > endif > > $(RTE_OUTPUT): > diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk > index 2843b7d..076a2d7 100644 > --- a/mk/rte.sdkroot.mk > +++ b/mk/rte.sdkroot.mk > @@ -88,8 +88,8 @@ export ROOTDIRS-y ROOTDIRS- ROOTDIRS-n > .PHONY: default > default: all > > -.PHONY: config showconfigs showversion showversionum > -config showconfigs showversion showversionum: > +.PHONY: defconfig config showconfigs showversion showversionum > +defconfig config showconfigs showversion showversionum: > $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ > > .PHONY: cscope gtags tags etags > -- > 2.7.4 >