From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0072.outbound.protection.outlook.com [104.47.37.72]) by dpdk.org (Postfix) with ESMTP id 554DC1B28D for ; Mon, 2 Apr 2018 20:28:55 +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=rAZjQKxj2O8AYbOVmiYGRGh4iQe8MQY3SqZK3p3Eg38=; b=BKU9on1iR5gy9wCX1VwQew7RSppCqSJUwkIC3lu9ybrgW3233rHBwq2XVvoGDB6kBMQElseISYpBoG7gio7ylbeDybb3UVR88ZmSMr5sgMkSSUq7pc2wvDwqXI1mZPMHu3E1xj4QBCEO6TM2IKPwMpqVXt2/relo31zbxLACGHs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 18:28:51 +0000 From: Pavan Nikhilesh To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 2 Apr 2018 23:58:23 +0530 Message-Id: <20180402182823.30688-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR06CA0104.apcprd06.prod.outlook.com (2603:1096:3:14::30) To CY4PR07MB3464.namprd07.prod.outlook.com (2603:10b6:910:75::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 642538c5-11e3-42c9-c936-08d598c7964c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:xqDp3F952dluoBASoTnJ+f2sj0oWKhkmtA1Mwt1Q3GSebopIqFmh6dtwn+xRY6bZlp3HfwQDYJXD4RIhqoQYuCpUaDaKhJIjq9d7e4kBTpTKW/IO51v76/meaKJOsVuEcbAAJ1zAbmN+Ay0ohp7PWSU3iSqWdcRySY2A1GEIYHVe828oHoNmzMuVhoomSz6/R/kWIfQEmylSOOjz4lQZpy66SebZc9SJKGfseEjtBTMvVpmzLsj27pmIQynGDZWe; 25:rcJ78gHSFnji2HpIzofsR0scyZ9XJsEpMkeozCUz8gCdwdykPLWSYCI/xOHIIEleQQHD1j8tbZJzcmkzp7LhVdZOP0VxDM9wrag7RgFdKk6PjGErQTl1dYkh9B1jqblXKLN0dPAk/osv1kPo2seAY9me/pHjZJMMKygXfHq+UbQBgdD7+JpGEqCBz3lJGGceLZ8arRJZukFXeZyUBCTLRNsZO88eLs5yRYmpH0iGs48D3mdBFhzBS/foPGeAgI20bp9nOF5mEn0yeVCULXSei6Vo2Pird/Wn5bmdM9F8f9WVbAeEfCTG5B3gZism+Wh4sG6WrrnbjuEH0AEKNBactw==; 31:b1S0arhlfoLq8KVSqkfxhw0XmZnjQ0mkH9gd2AYGcmpCbjeWU3dnTyy0SU3+OMfZVbA1hV/rFSjmBgLv9O4Vt6oeoLpMH4t+6jV4TDMZBkt+3I2w2cSqitaESGTSA5nVOoRdt0+2si7Dxs/V7jM6lB60373X2BGmcpdi2u7NvlFBScAvyUEFmYiwK34e+edO2Ex7VKhkpmYSKAvN4w//KoRMqllmsOBlhzdu2W4xc1E= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:HoHJ2jx3gt3LebrXEtfkUyC/2OtOGC4rMZ5d4DDjN6k3wRCXcvIzftncdm01KaPx71m/oeIm09WMUrsO2MD/cB7kPZGHWlNx9cb0nAppTrYxU+5uVN1IHQ63bOR6KZCecQyTmkMCI78F3g33O7iKr2iVuFJCTHdEJTNQwhlUire87MOnIhfOyI/5CEeBQ1COJM7JAUHyZBE31mVCym6l47mFf88NrOlzLQYKhj0DyfDM4xty0ZfRcaxNJxGLx1xP0IT+yGNCXBdPkOQZRhylajytyKGotgCLIlQwbF3B/uxwQepFzKGjmZodyJnz7MqQ4O3hN42SNIEon7enmkHUjOpk7oqU1QW8gM99qOgJAfndpRPNWB6PDAfJZmzSXGtWkMqgf8lcZL1uIop2DfXqCqF0Bgq+2huhAdUpo6Qsa80jsO345/m23s7lflOpdwNiU00c/LmptnHzA0lNfl1CUm6TlG9AHrJ5OZ/2BFyLExrgMjDnUgGVYMBZbl7MZkSKkTCu7GYied0uNQfMajYBPU0MEhDgqnHtAg9vVPnWUcmFM0bhRqOkqgxIm/PxcZ7OGlAYZK8nUJg8kxX5vh44dny1l5OLQX4e47abJlchpKA=; 4:SSBmmr0fnHkpTJo5Lh6Or9AbWtEsA2LwCHg0CXtdz7pHEXHHDA3CcaMb0L/riYPO+Hdlol+4STEyX82mAEAlV7KkFKVvjXbEzCN8DkciDlNpuHY/mzOKGzyJjo7Tu89G83wG4s/s98O1llDgX4nDi6pFioJDRTCAmOChhwuHQmB+855MfNO0kMuixwVW7YX2iBeTTDIdPvjN3geqJ2cyGFwTEwo/+gpFMlcjrHNRRzmxLPQJCaZ5duI1mdau+sXrk+xc9zqpb33xiubZj4YIGA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(10201501046)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39380400002)(366004)(376002)(346002)(396003)(39860400002)(189003)(199004)(50466002)(6486002)(316002)(53936002)(42882007)(50226002)(51416003)(97736004)(6512007)(486005)(52116002)(72206003)(66066001)(36756003)(106356001)(25786009)(186003)(476003)(486005)(8936002)(305945005)(956004)(2616005)(81166006)(26005)(6666003)(105586002)(16586007)(6116002)(6506007)(107886003)(3846002)(7736002)(48376002)(81156014)(47776003)(16526019)(5660300001)(68736007)(386003)(478600001)(8676002)(1076002)(2906002)(1857600001)(4326008)(5009440100003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3464; 23:zE4vikmK5d/PYKTyPmZydKpaTmI7Z9rvkI4fB2XcZ?= =?us-ascii?Q?0as+EiBHA+sMGDMMtEZW12l9rW9BrSZfabxxzRLFXZlJDdm9AXQ49YoXXtyc?= =?us-ascii?Q?fagHfaJgdoNLvzT2R96NKNKrNWU9ELvZTXDEntHrSDzCDJ2lYLLGZ3Y3E6gv?= =?us-ascii?Q?LirafN2j8UvL64y9zjzORVI1IFo9ZZeMwAYNbN4puuWza8lOyAhHuJResAOv?= =?us-ascii?Q?PAqgtDUTEgqlVN/fn5kCpB6QOuJheytiAh/yGpn+PtUSAozg05fBywPbKx0u?= =?us-ascii?Q?8BjM4xF04aYki4JAqllRjnz+fUYBQfoLBEF1oB2bTcIFMEnWGeLQFuJJxzl5?= =?us-ascii?Q?x78PPITI4Np41cgDbaHtUcX7PlpKrjRP0NzNaDYC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?+CG0RD/jWiYpBXHIKCIsTTdsy6ijbHLrTgIH51n?= X-Microsoft-Antispam-Message-Info: FfNz3MuT/fewIOyoADPbWqWoSMyunzxDTFS1zl/UcFY6tQKhh43TojDrHTywYxLOTDTBiO3+X1CEkOQEOUZn5JASdjCDbhpdr+VzlyQ6UF/k/qEBLKWGA49fpX7X0m6Mev4UlTSiXBegFnSABdo4k39pmjMxXlgrZJocJXBUdOJuwc9XEnh1GUaBnaY9efnS X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 6:2PCB59ub9heP0oC5Oo7b21tcO3CrelScSQvlWSoSjbqFSfY46GY2xP+3Mt5Ra0NBlfHPnDWtnnulfSnIvonoGmWntWWIItB6u7ELdipSASyr1oJy4OBkl6+e3bJqI0fupf+NcyYD5YWaCHYq7I+RO569b/G4JxyWnRPkWVnffHkI3ppBy+tmpDwJ3dJvHDb0swQSgtzO7LO9ZGuvV+9e+QM30jQH6afQVbh6TPjbTyJfyU8kfMoftlfR427tInM2r9DRLwVHE/k19NdXjdgVRKjcfd56AHgEiMr8BwcwV9Fi2OIco34OobAIu10nacDJ9ASNEIPpMAjY9xIsI6AbDnoI8r6O7NkXFYx8pSFGziU9HLQ76I26FFpZJ1F7yphpTulJBIN9Z8cfWSPlHkssh7dCpGM9fmdGBJFdOhZQnYVpceiNtE3S+pR34GUAmuIK5wJ70p5UeBoUGxbKnkeUFQ==; 5:kLJJnfK+0ys3aZpR7G0PTXcJ3pqOOCD/mCFweCcRRSa/mVavsuZVkkwxSeOvvvK7AFtXltTdt1okaN4zI706JpXTNY+Cxg+CwRovoCekD17rDvCUiDxbEPSnvfcYzEkCaSDiMNJw9CAdHzlC55tIqW/j/rT7FYGIcBXsb5pYj2I=; 24:vYRKWLWED0Fo6ZOkNXeNZH4QHxEPECeERu+TyaFDx+MVUQTcsfp/C//PiMM38oiAsnbBsZsAY0hEQ7cU21+cdUImaGs3cgG7B/rZ3qlltzI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 7:DD/L/NKHlv/dYG/1j196HziFGlClkQ1OJZVrj+jWicRZtN6I3Ah645zy7dSXScthiEA/j4MsF2Jsm8f2zN6lRysGMOLrhenKZDJDOm+C6VljcOcnNiBi+jreMCo5OkGupKf0FxH4/ctRtFeHluopwBZzNpZG0NinpHQjIrqU2QZa8nXTZieVKveKr7tZv7mQ5rWwhCk3Tw84FFavBomt4atudI5SXGTQWBZ9DRgywvZP8eToctMyFcih7hUo/FQv X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 18:28:51.0321 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 642538c5-11e3-42c9-c936-08d598c7964c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH] build: meson set toolchain info during config init 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, 02 Apr 2018 18:28:55 -0000 Meson set RTE_TOOLCHAIN to clang/gcc and set RTE_TOOLCHAIN_CLANG/GCC to 1 during initilizing dpdk_conf so that it can be used by both x86 and arm. Signed-off-by: Pavan Nikhilesh --- config/arm/meson.build | 9 --------- config/meson.build | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index c1ab6ed01..e9c9eb1a5 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -83,15 +83,6 @@ impl_0x69 = ['Intel', flags_generic, machine_args_generic] impl_dpaa = ['NXP DPAA', flags_dpaa, machine_args_generic] impl_dpaa2 = ['NXP DPAA2', flags_dpaa2, machine_args_generic] - -if cc.get_define('__clang__') != '' - dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'clang') - dpdk_conf.set('RTE_TOOLCHAIN_CLANG', 1) -else - dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'gcc') - dpdk_conf.set('RTE_TOOLCHAIN_GCC', 1) -endif - dpdk_conf.set('RTE_FORCE_INTRINSICS', 1) if cc.sizeof('void *') != 8 diff --git a/config/meson.build b/config/meson.build index f8c67578d..5994d7b7b 100644 --- a/config/meson.build +++ b/config/meson.build @@ -11,6 +11,14 @@ dpdk_conf.set('RTE_MACHINE', machine) machine_args = [] machine_args += '-march=' + machine +if cc.get_define('__clang__') != '' + dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'clang') + dpdk_conf.set('RTE_TOOLCHAIN_CLANG', 1) +else + dpdk_conf.set_quoted('RTE_TOOLCHAIN', 'gcc') + dpdk_conf.set('RTE_TOOLCHAIN_GCC', 1) +endif + # use pthreads add_project_link_arguments('-pthread', language: 'c') dpdk_extra_ldflags += '-pthread' -- 2.16.3