Message ID | 20240806134218.3619913-3-g.singh@nxp.com (mailing list archive) |
---|---|
State | New |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61E6C4574D; Tue, 6 Aug 2024 15:42:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79B0B42F35; Tue, 6 Aug 2024 15:42:38 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011039.outbound.protection.outlook.com [52.101.65.39]) by mails.dpdk.org (Postfix) with ESMTP id 5A2FD42EDA for <dev@dpdk.org>; Tue, 6 Aug 2024 15:42:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EqYla4f/qaXCHip5Aq4C7Djk74lowYR3TgNoRWrFcz39yTB8IJlWdNTakMtGbzxQugppeoSOafHshLVJOT63/RrPrk2mvHtbH5yFmrzxU1yXi0EXsRMXkaL0tnlGzobUeOuwWuXhHWi8ew2jQ8MuEFWdTTHYE1IFfzSDr0TSos8JUjsiMGEiCg+FZoqLmHa2RA2uxnNL70RZ+CB7ojab/99zuerTRKoXWCDhqGj+oTJzuZLMyCKUiF892bCO0APK9rgPcAJdUQBL7g1Uf6gFSFcGKTkB5M4vY4d4ylBuTA4uMXTTNcqW0tGzBQW/enRWhYnjVDtpcAuQUbwGngor9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DAUV9snNBUW5rkFOgs4ysuANbna831gHNMhdCtY9sTI=; b=mlbOAp20oQLS9Qj3HnezDXwF18+CRQa0IQ4uvOjnesHocbI/r2OzwES7gJ57ynHK3SJI6p3UztfjlwNqrBaUyWoXF2XpGg1PxQ5KhmPWP8zdbC/OJ5oAllCNhoo2ybWj4ZxLp3XnYNl+orRCLBTJ+vUXSbBVlQvJ654Jm9C7X0EpxFuN4RCxD0WVq8xjp5LNcc0VMP5iAW3y8yNGNf4Y3ee5bTBZizCZ9gB6cj4HwdUaNTZVBM1rmueEfsPkolWDbjjzNvlbFtbvBo8mY4lw7pus1+jboXJeyAAdqeLVhOuKPoBdwpx282DxGR/RkwcnkzNESZ2jT+LJfExLbeho+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DAUV9snNBUW5rkFOgs4ysuANbna831gHNMhdCtY9sTI=; b=Bqa4nOYPnovxRi+WITNnQuL0F5XkZPMq4ecpu8iW6WPPMkarivdA7nYLSBPZ+9FgH5UjH76kxCOrPuC5k0rbXUBLKEokOK/TkRT3b5dt+ZZ8SCY8kwe9OkGl/CDA7jPk404eCJDQjr6Au17HT+sl1LW5i7dBL4Pb/AwNrJsJkUFyKeXSEF36KJiWc+6h/UO1LdWe0GV4E/IbyMQ2K7mDyjARurPJaWmCmSyKeSZfZRbSvnJjRkekz40VvoJeG66Gio2H1TYFcl0+v6CogmlbbQonozUFM7I7AbCusi6Aoa8Oefkh5XSy49urnQykeidsbMLYfHNNA3XxMvc3nJ4RoA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by AS8PR04MB7783.eurprd04.prod.outlook.com (2603:10a6:20b:2a4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 13:42:35 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 13:42:35 +0000 From: Gagandeep Singh <g.singh@nxp.com> To: dev@dpdk.org, Bruce Richardson <bruce.richardson@intel.com> Subject: [v1 2/3] meson: add a meson option to install examples source Date: Tue, 6 Aug 2024 19:12:17 +0530 Message-Id: <20240806134218.3619913-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806134218.3619913-1-g.singh@nxp.com> References: <20240806134218.3619913-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0004.apcprd02.prod.outlook.com (2603:1096:4:194::14) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|AS8PR04MB7783:EE_ X-MS-Office365-Filtering-Correlation-Id: bd89bb52-ca2a-49cc-7183-08dcb61da0f8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: ng4zEPLAOqB7ARo9Z9A31n1XkDvbfZjvEXGwWsJZkfZCcD+kloq8h9o1ro75rHokqYUo/l1tq5vL22P907dGuptQF012ntyikkJR+R4hS+yLWgm8paja3tBgdTT+6It6R0JsNX0HsYSiszflokh3UpUzzgQkn4EkJl2hMTp0wboGtDnNcnNGhaBLSbHZO6bOiOGkRYQZTtjvzkUgmZILqHTgLYd7ymTFAf/3P6b8TBX/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VwYcjhhVeYR6gqrHCH2/dqLK3M4EieCEI+roS7TlrQpijgB8hrdg3/4/RvJW04YsV8L8v1THfBwrB8aSU4eDd0GTC7FxaDY496QjSoe619LQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cV/vhFVzVsc2cg+jNVp1B4NByNSpL7TPWrFQT41YxY094rrOt/dzqg+tkjcfbrTYUU9568/w+DiQ8A4FHRuD38p0SW+rcFZYYSkfIycWY4S3meNq8TBMMgdT/EdwTHDwo7Agnos9pfzxO9yoTihenRFYY4xue4gCSrO8c7/0eVuVEfGRPIRIxxHlBN3tikMpQz7aOMdtqmCXRAdLRXAUGOhaNSOSYlki9HZN/d60wZYDjtQ+6enV9+payFE51e66onGriio/FYUiDsOXb1RmlfhRpQZc3wSCDUlUUKIjTVWuzZBcH/0Uf/Cs6gQLdlwcFiHLs00JKlgqnoh8KEB29KVFjANY6cpxASUBLbN2UF/RNZ6oAjU4dorRD68E/eBDnDbeFGjEyyLNqaBtL7hX89x1JeLa8EZAogCiQOhcRf4+x+gtaNqRB2lbc+GCiPsBcKLksEA23DmBvokj9fZh1L9iu00I5Y7Hr7UXSoCH5hfWD6/Z6knEyLJvvoCkSoL90RCTu5gnKzyqwMxXE7N6p5OZvG4Bk5jAb/KHbxB7nWj6RrIj77FJKOBWpVbsmrmO+bfJvFpVLbVc1VJQLCniQkSX2jJ8zWOWwRWw9HqRFEX7VUVunPAN/wleDx7m6ljdzISG12zajv3rUeKQFh5b7aIblZ3fxaOfmDdx28sVzMj9TEvHbidt0nq7OSX1gtbz24UKnTfwr3IN41Q4pADfjIxDiwoVC+iIwpDCX5XANEjYlCgzotzdEiMKCY75bFuX5Cw7GFhNntFLP4+nw8uSaVDXVDxc4ST0nR7yOzgUT/MT60zfPdpPNnXjOu+F/81tD6dwyA0BduXjEaqjnXNL1rE71AyqG7hZZMS486va517OD3eeKSlf6vh7LgQMWzWz1oIXImYeAjEH7FTwYT4q+Snd+Q3YrGriMny16dId+3dQYFXaE0FexDhJ3rvUZrNZ0D2r99bhYjuWmtwNtctGmZkGS24wLMZg77Hm692/AM/xiLcQwhW2GiVoeB+gVhsUVXmEYOVliLdHQlIfDLYuNBNz3YjZgqjWLOcpsQuB4WcxKg6C5JD7H8Y/lrd+OzL+1UDJk3dfi2w5U/8yA7kz12nnw069+d5f6NRRcntJb4OllEgpiVAGzdHlBARukbznFlHDjou0avHlpORHzOFOl0C7y1z2E5Pb2diNRu9Ep4RnpZ7prKUN3EGESzc7BIL2POEn6J9aJSvNX7gVEWB1Z+zt1yRd0saonf9XHfLcDmoJ8Tzj5eYjPdeMc/d9H8JPp52aDTyAQkd/cgm8Suupu0lcJGp/BCooX99OkFx9/gc5VuaLRg6useIUMRv+TbTbqOHpUQEF3MCL9JAYN0xl8P7fpkQOGvHoawU7JGtkW55wi2tlw/bOsBPAztcvm5KCV6N2KklYtEUVW/QMT2l9I0Ip9kT94t9EdJUspu7ZM5koiv22WrhcT0iYZEaSuk0MZbq7PCiDwDrurIw9iv/M1YUEi+slaDOvbMHvc4yqzqAlQ5e/jL0sSdk0s0M57MAy2tnJh8W3z/+OcPNmjVRC/jhmDeYNBR5DQSl4RAJ+MK0nRsxpTGPCleEPjHNa9oFf X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd89bb52-ca2a-49cc-7183-08dcb61da0f8 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 13:42:35.2882 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HmWFL8YuLf5aR4qFGAZm4MjmxG2jr4Z4q2N5vjoPGPzgxK0OA5QypBTZAQn1KbkX X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7783 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
meson options related changes
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Gagandeep Singh
Aug. 6, 2024, 1:42 p.m. UTC
Adding a meson option "enable_examples_source_install"
to enable or disable installation of examples source code.
Default value is true.
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
meson.build | 7 ++++---
meson_options.txt | 2 ++
2 files changed, 6 insertions(+), 3 deletions(-)
Comments
On Tue, Aug 06, 2024 at 07:12:17PM +0530, Gagandeep Singh wrote: > Adding a meson option "enable_examples_source_install" > to enable or disable installation of examples source code. > > Default value is true. > > Signed-off-by: Gagandeep Singh <g.singh@nxp.com> > --- > meson.build | 7 ++++--- > meson_options.txt | 2 ++ > 2 files changed, 6 insertions(+), 3 deletions(-) > Is installing sample code for DPDK a problem that we need to disable it? I was expecting that such filtering out of unwanted files could be done via packaging rather than us having to add lots of DPDK build options to control these things. /Bruce
Hi, > -----Original Message----- > From: Bruce Richardson <bruce.richardson@intel.com> > Sent: Tuesday, August 6, 2024 7:32 PM > To: Gagandeep Singh <G.Singh@nxp.com> > Cc: dev@dpdk.org > Subject: Re: [v1 2/3] meson: add a meson option to install examples source > > On Tue, Aug 06, 2024 at 07:12:17PM +0530, Gagandeep Singh wrote: > > Adding a meson option "enable_examples_source_install" > > to enable or disable installation of examples source code. > > > > Default value is true. > > > > Signed-off-by: Gagandeep Singh <g.singh@nxp.com> > > --- > > meson.build | 7 ++++--- > > meson_options.txt | 2 ++ > > 2 files changed, 6 insertions(+), 3 deletions(-) > > > Is installing sample code for DPDK a problem that we need to disable it? I > was expecting that such filtering out of unwanted files could be done via > packaging rather than us having to add lots of DPDK build options to control > these things. > I understand your point that packaging could handle filtering out unwanted files. However, adding a build option to disable DPDK examples source code installation provides more control and flexibility for users who may have specific requirements or constraints. While packaging can filter out files, this option allows users to avoid downloading and compiling the examples altogether, which can be beneficial for: - Users with limited disk space or network bandwidth - Users who only need the core DPDK libraries and binaries and don't want the examples source code. By default, the option is set to true, so the behavior remains unchanged. This option is only for those who need more control over their build process. I believe this optional flag adds flexibility without imposing unnecessary files on users and is a minor and useful extension to the build system. > /Bruce
diff --git a/meson.build b/meson.build index 8b248d4505..7cdd54f088 100644 --- a/meson.build +++ b/meson.build @@ -88,12 +88,13 @@ subdir('app') # build docs subdir('doc') -# build any examples explicitly requested - useful for developers - and -# install any example code into the appropriate install path +# build any examples explicitly requested subdir('examples') -install_subdir('examples', +if get_option('enable_examples_source_install') + install_subdir('examples', install_dir: get_option('datadir') + '/dpdk', exclude_files: ex_file_excludes) +endif # build kernel modules subdir('kernel') diff --git a/meson_options.txt b/meson_options.txt index e6f83f3f92..4f498093e6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -26,6 +26,8 @@ option('enable_driver_sdk', type: 'boolean', value: false, description: 'Install headers to build drivers.') option('enable_examples_bin_install', type: 'boolean', value: false, description: 'Install examples binaries') +option('enable_examples_source_install', type: 'boolean', value: true, description: + 'Install examples source code') option('enable_kmods', type: 'boolean', value: true, description: '[Deprecated - will be removed in future release] build kernel modules') option('enable_libs', type: 'string', value: '', description: