From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D6335A0547; Wed, 21 Apr 2021 15:01:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 60E4041AC8; Wed, 21 Apr 2021 15:01:56 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2058.outbound.protection.outlook.com [40.107.244.58]) by mails.dpdk.org (Postfix) with ESMTP id B200D410F9 for ; Wed, 21 Apr 2021 15:01:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hisBhz/03Dv30m7O8Su5fWfUY35w3pG2iMDicxy1K3RR9TA7h0JSeJAULS+LI/3sBwHuofzA1evTHynl2xmlZLbMizFQMxTRiADj+4U706mTJ/pQAUgR9AtHWKb8NJ53Yd/gl0lG4kaAalv7W4kw6hMlkmhKztuHOeMJDPkKFbyGxUNzV+hxRlKdZxW+Ii3Qp1+QVOgdyWqqdq7oo4ESr5k0ru19UUZwJ0Mcg0jLH+qHZj+AsDXYSknmdH1IMFsB5bEpwMTYW+Xcns4/xAaGVXsT+mdX5apKvwDdsTh5LtbH2Y4DE4etglFOl6d8OHwHVhjXPK7m25qb0QvQYF2N/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D5utnR3inSRq6LD/KyZPrug7GcjWdeT28YUrleLWmB0=; b=NvvWTAg8UWoPmTTqc/I4eiRLoQvrHiLU/EaKyxXD0tDjLizXg0FRIkonSKlnyh/PxwlRjZ7b6CsaGvYlmxLS61Yh+fsgBRL7m9uMZOJWp2XkW3IC76S7ySUHxtU8eUeXCNA+AgcTMOft+px138RhfzxZuhSMdpItJ5CHwCTHFT9dCQSFu3ZBmE2cAnu+jusTbfCKe3MiDVhk36qsYu+rbcooaiXhld9+VJ7v9DL6d4Tj87K3TB3QUbQJzQ3O8cgoDmCYxpPeBvKn0xERi0kzeWzHTSYfhEEyEto9qHWHU3/3CGyyNQ6mLgPXrOlLFx35II/t8wGnbYMbokkOmQI9Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D5utnR3inSRq6LD/KyZPrug7GcjWdeT28YUrleLWmB0=; b=kt1kuzvpsIj10XZbPy/Dn9NY01pC3FWb87hSD0HYIW42pbFFgZTD4G4dvZIjr7R+DkdZT4fitS2menL5wsylTdx+oidKHuPyM4oYDQSFCPXe85Xoe5hxvhsJu/iYQQNxZ4mPBeO0KpV39gcAwKqRYHNY3G0ivrXNGYHTl6UTHOK5jYQxhmbCZfBCU3bio7xtHRlO3dqOsPNpgMp3uoAEnPZEzSEk8xduAITTzmzDjjLNd15mLJ11b/pZQtbeoyRfbLpDEE/0BLUDtlrvoEXSauJEFAEcnGBmV/POSiswYt8FQDGJnKJy1xF0+ucyi85vUpFTYBP7jv/awsrsdreavg== Received: from BY5PR12MB4324.namprd12.prod.outlook.com (2603:10b6:a03:209::10) by BY5PR12MB4321.namprd12.prod.outlook.com (2603:10b6:a03:204::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Wed, 21 Apr 2021 13:01:53 +0000 Received: from BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c]) by BY5PR12MB4324.namprd12.prod.outlook.com ([fe80::b919:53f4:6757:331c%6]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 13:01:52 +0000 From: "Xueming(Steven) Li" To: Bruce Richardson CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 00/14] Build file updates Thread-Index: AQHXMuKslUmIxxtWWkCbKXlEmNkANKq59IAggAHfVACAAyMqEA== Date: Wed, 21 Apr 2021 13:01:52 +0000 Message-ID: References: <20210401115009.1063844-1-bruce.richardson@intel.com> <20210416170458.50188-1-bruce.richardson@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [180.162.54.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0494aef7-56ed-40f9-8d90-08d904c5a26f x-ms-traffictypediagnostic: BY5PR12MB4321: x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AxDIvHEsrGGzp9KKFqerP+kZwzrusnDG3KV1+KuLarD+ajI0jWHd8lh+PzmP9OArFvpKbfQagnlJpbZ42gKjYkkhwWKmndNjFN4MW3ovsj5G0iaQHvgAAvypzCpoxn0zdi6yMD5CkA9rEDdAVkfODq5eqA2GRR8HhoMQECFr3ZwWBL7RBjNb2vKXKuNI/FdajN8HbAThe6i9FnVQPyPWC3bnkPGOxw/2xyhLvo34/rCQhO9wSS4pCveMr0gFE192cNF5OtuADRAqoZV5twDwHYuixTlKyZFgBn/ocOEVrF98VZAKBIkMXEeMuZlI+lEksbpXQ2mJOBCzo7ZPgxOzHFDAzL0Ky0PFB0KZIVSNReBIWHo86976YqDqO9+2lkR5zXX/Ik2mOHp0tPNdNkXzEWmGAZtKSghXupHqTDXD78CG/n6DAFN6t4WHODSrvvUjAOMi+WEQfjePsvl4Ca+7NwBu+THp+khGJhWmJwsMXOqXyAIFKetQp8gMzCv5BFY69JV4cvN5QPjSlAT49XY0T0SxOnP34H8342xReBn0Fqn894/lwKw+MgMeorUjagOSmowlVeia/wy1gGDtV1ejfDTg9qzI5lHMbHcpzSmNV4I= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4324.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(376002)(396003)(39860400002)(186003)(83380400001)(66556008)(316002)(6916009)(9686003)(33656002)(6506007)(15650500001)(53546011)(52536014)(71200400001)(4326008)(64756008)(8676002)(66446008)(478600001)(38100700002)(5660300002)(122000001)(66946007)(2906002)(66476007)(76116006)(86362001)(7696005)(8936002)(26005)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?+kaR+P9iDb9zXQIJ3r1rWWO39Q5hb/ayRNTp+satPff4XFWjdTQMUv/2d+NG?= =?us-ascii?Q?MlQTYfRX+SYW66zOA7IoZXCTryu8MPqqxmWFskmPUCU1qBeGtyVfkeLs48gY?= =?us-ascii?Q?zi/Q2fa0tVkvQEn4cZq/saaTF6LIJxhDvO3E19uU22/1fRUJWSB5df1HaNw5?= =?us-ascii?Q?FzwbZgpYviC9e6RfUz1JawPcxRCzQHFUWdoa5etELkkru0R9Ihl8XtQrK9Ku?= =?us-ascii?Q?gui1izc+ib4XjeoLFLHox0xoOmSGl4CzbEb2t8w7AkAyVlcFqQ4y2Mc5BVTn?= =?us-ascii?Q?KxLqeAAr00BtY3rCh0AX+2RHgy1Xp/pq8toT+zm6uL5ny69davvq7l+2cYwF?= =?us-ascii?Q?gq5AKiByiDtTuxEsV2Ta9IJm2NBObMky8afF/41/e1neTk20GDWehWgN8YS0?= =?us-ascii?Q?VzTG5F7KeYVu6meJdaOsLihJbeC3sPVt8G2pOPCfaYcINJHYv0tLQYrwlI4s?= =?us-ascii?Q?+JkC//HsZVvyPOnD0cIXqrVVtqKWK5TMkMxsI/qu7hi+I4KAGXdQtFP8+/ZG?= =?us-ascii?Q?xkmFMaSz+R8K9XNANeA76DkczGdfrSKfz6NZjDcLoYTM1k38ndl2qYnbOKvG?= =?us-ascii?Q?3nAU4XLdyWlOthNoJ8KzM+yC+NuxAJpFeMqRYnEEb9gam9LYJwWZmwqZhisf?= =?us-ascii?Q?4NhTaIXG+C/g0oK4gcGoFLc9Q/z241ZyE7sUNmivJldCEJVLeeLxg8eTIOcu?= =?us-ascii?Q?WDssvsHxkrEQJ2EDQ9ImsMVS7X8Bz4OkP3upkwyopRMpuQ6GYa8K7qNHNsq4?= =?us-ascii?Q?Do8F6QD/fFZEuNSlmLbyVBnFDEZc0C4+Gjefua69pBzTW4LUbV/owwu0Fuo5?= =?us-ascii?Q?O3ssz5S6c9L55UAfouN3xdW/LR8dYUTwfSqkUOp5olGyPbNG3frTn/R1Pkw2?= =?us-ascii?Q?pGUZPKQx9qDr8Rg4JbRjIFSEv9I8SOwRXvexV7w9J21uVmvYswX6MlYbE4Py?= =?us-ascii?Q?0RtNLp7meIEp6O7v4JryKSEzftt6JncELYpXn1xU4Sfr+AzNmcTENfqUk2BX?= =?us-ascii?Q?lNYAhvcUz12WldLqCm1aeoy++cB6HqKJT2i9Y2NWRnXxsSvR+iigitnxDvVP?= =?us-ascii?Q?oGXgrhwuYkj7V88G1fZrM0KaiNbodyzy6DDviYrzblC9Q9Kc5QNQESgv2rfN?= =?us-ascii?Q?JV9cxYNlYf696pvTcFB0H5dWsONcGrDWLye20lwbvLs6Ah1PBHw3gq/Oaw56?= =?us-ascii?Q?fsbSA0n/cTqEk4dwjtc3uPElfORvsTF4HIv5Y43ZybumoEj9YeiFQ0P/PWpI?= =?us-ascii?Q?ictbdSyAWFr3yjyTneIDwL09bT0HxevGX2awJE4OUea+uUd2LeghzOuyhzEx?= =?us-ascii?Q?Daqqv/ooCQWW75NvMBtB/wK3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4324.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0494aef7-56ed-40f9-8d90-08d904c5a26f X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2021 13:01:52.7634 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nnn+BkNcCjDdRu5FAVTLwwsPj7SDofHcy7AQP2zWBQLIO0UM8zwKHHJsO6eOHiW7LcOwasiA5IuLRvstPXJpDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4321 Subject: Re: [dpdk-dev] [PATCH 00/14] Build file updates X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Bruce Richardson > Sent: Monday, April 19, 2021 9:06 PM > To: Xueming(Steven) Li > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 00/14] Build file updates >=20 > On Sun, Apr 18, 2021 at 08:45:25AM +0000, Xueming(Steven) Li wrote: > > Hi Bruce, > > > > > -----Original Message----- > > > From: dev On Behalf Of Bruce Richardson > > > Sent: Saturday, April 17, 2021 1:05 AM > > > To: dev@dpdk.org > > > Cc: Bruce Richardson > > > Subject: [dpdk-dev] [PATCH 00/14] Build file updates > > > > > > This RFC contains 5 changes/updates to the DPDK build and build files= . > > > > > > The changes in this set are: > > > 1. Use "continue" keyword, new in 0.49 to shorten and reduce indentat= ion levels > > > in the foreach loops when building library or driver components. > > > 2. For libraries, drop support for header-only libraries, which was a= dded just > > > for the "compat" lib which had a single header, and is now part of= EAL. This > > > similarly reduces indentation levels and makes the code easier to > > > follow 3. Since the larger blocks of meson code in our repo is seeing= massive > > > whitespace changes, take the opportunity to switch our indentation= style for > > > meson files from that of C-files using tabs, to Meson/Python style= using > > > spaces. [More below on this for discussion] 4. Remove the > > > "librte_" prefix from all our library directories. While as useful > > > cleanup, the main driver for this was that it simplifies the match= ing for #5 > > > below. > > > 5. Add a "disable_libs" build option to allow the user to optionally = not build > > > certain components. Include in this an explicit list of libraries = which are > > > "known safe" to disable in the build. For now this is a short list= of three > > > libs, all of which are safe because they are not buildable on Free= BSD. More > > > work is needed to expand this list in future. > > > > Great feature, very useful for PMD developer who only focus on some > > specific class driver, most drivers and libs are not relevant, disable > > them will speed up build process significantly, this always happen when= switch release or rebase code. > > > > Currently I collected a long disabled driver list for my minimal > > build, have to update time to time as dpdk community grows quickly. An > > enable_list might be more efficient here to allow minimal lib/drivers f= or net, vdpa etc.. plus specific pmd driver for NIC on hand. > > >=20 > Managing such a list should not be too much work if wildcards are used ap= propriately. Here is the disable_drivers option I use which > just enables the necessary bus drivers, as well as intel NIC and rawdev d= rivers (or rather NIC and rawdev drivers whose names start > with "i" or "e". It does enable a few extra drivers I don't care about, b= ut not many!) >=20 > "base*/*,bus/[!pv]*,c*/*,event/*,net/[!ie]*,r*/[!i]*,vdpa/*" Thanks, wildcards here is a magic :) >=20 > /Bruce