From patchwork Tue Aug 6 13:42:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142955 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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 1755E4574D; Tue, 6 Aug 2024 15:42:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3ADAA42EDB; Tue, 6 Aug 2024 15:42:37 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011020.outbound.protection.outlook.com [52.101.65.20]) by mails.dpdk.org (Postfix) with ESMTP id A9B4642ED7 for ; Tue, 6 Aug 2024 15:42:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NaEn3PXPSz8QBNmhjMzRZ9ulT5+eV3wYKxPR97yXIsC4ef1IHD+2S0tAfLAjya8WZgL7Nm20uPRmPNifN/SOvszuNV1P+0Fm0gNy/7ZDuvzgqqzS/+C1OG6Y4rBmj14ceL6SkCu0WoCC1AYKHaxtdoINUxyJlM7eRx15Eo3GI3MirmhCulYYInb6U2MG5h4Fv9Moy75pnNl6T7fmp0i64KTBU+OtpJX7Fey8BiM5WeF0YqGkAvfeUQpPdmJyW5atBccxPr9OdyRjFSMnOS7XnguXJZSYxTrezofRs3oIPm8H62fRrAPXBWx75hRLsQnJ2IH4txOwghK6/j6fQyI6ew== 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=d8Gj/HN+/PozG9qSS448gEdDKqSQmtMI556FbAqZGH8=; b=AX8dIq2QbjyX3UdtgxPdKS64oU1XiWA2ZodzhNjxAyozh95uaVK48GjOrR52HWE2qUFQ+fynz7uaBFfj9kHHUc3mBJnQhZmgEH/r5umAwmqw4HvIJxfm4c5BC12rW4y9IDglQ1u/HaEQy1jXsXy0LPP21yYuA2iO94KXeVGquDZEIp5jm7j79/3AscJEv2IH0wwvxnbuKlXnF7H1jhcpvb29XDycxTTOCxqzqmqcCGUXTLbKRMDR/1H0uAx4HrXax7Cw8vISCARWsy0KCvAepEwCEUGI16GO+OUbk1fplSUQk/UteC7U7ihSkLkpSQrBFRmhtpBwFNpyLFlOWSftrQ== 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=d8Gj/HN+/PozG9qSS448gEdDKqSQmtMI556FbAqZGH8=; b=eZ4v7SmIXi4sAZ6jwuxywWzqLcb8o3d23P+hFGnftsByFAFidfH4WfLVPMGIm4fAHRcLxG5OfvzGuH9UPJhlzAImtsCp2tr3BrZU7xLfom7kIyp69M8A2piQ/ozurFytVZLMBptLOL9B0Ub5Jbu/lCKrEi0HM/kitSbyfwQDw0RHlTe1BTFsntZwaAJvxDY/BptPOmYEGXrZ089jf87gYrjRcCqVNGEQ7yQ3lwcjAPLGT8edm+M0BLT4TViP4TPGcWmSBcEUZ13GMhplaTOO3bHZ+i/J4jfyK47hzDbKTNcz2SHeRddg55xSs1WkyOd5dM55ZACAWJLJbCL1PWu5xQ== 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:33 +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:33 +0000 From: Gagandeep Singh To: dev@dpdk.org, Bruce Richardson Subject: [v1 1/3] meson: add a meson option to install examples Date: Tue, 6 Aug 2024 19:12:16 +0530 Message-Id: <20240806134218.3619913-2-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> 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: 121ccad7-95ea-45ab-2b82-08dcb61d9fff 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: h5jTpEz7yYzvSZmN4plC2Pd3sqfVkG++187ZQ5gC6OM5NtsJe7dXlyj3zR5kwvaYO50YdWA8xSZqt7WQuL/QJnxyR0hghkH743PciVqw15fvk464vveUSPHdJqMuOElXR1qwrfX9j0KJYs1v6ZFOjPSJ1NS+u3W+5oocXkRpRcatkTPRTOTBCN5eoHGU0XSUuLvvukKucMNdv0Vvj6dzJ0t2RRJ32nos7H8JqxikexubB2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3Qcp4MvWV3fQ03kJZIqvGxa2/0MngWoWediiiCcYw8o0xFnPbOxWDPQKjlCBV9zUmA5FFi4dLc4cZFJ2j9ugtqVrwSLmePYQyO4b6Ll5qjQKD0vEMF/U5CUdA== 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: kFi7qBtsilSfCUaj/qBhkv7llrd2nLKzadrV2z66TDAZhx4foYDE9IciX4HjfugQg/2SfBZ4jqRf7ybbXjgg2Wmo8NAjqjHATp1Tco9U1JwbeCZOAXcanvs46tn3vRUuCiDt7ktLZBF4yW7YoIvdq8jnWsKFH9cm+nQuHvY2sNXJCWgeDhQN27/f+tHf4s1/Cd50aLgXIa6ygdEi0WdqB4YOCYSkr6WDhcpGZxQyFBcnDvXYzND9pVVExW7q8aoql7cGCbAcMJwBLgoABa/ul9pwnn2jtpx70cJW0yV8uhropzQovwJudqVwp8e8xtUBDRxYarO6SViucPlNaNa6Y2eZNA2vKYJszFmqIqBD+MF3WCICUuBbGDpDXX08vpaL9vellg3lsrmbSPIbHVSW6NvVbr11MBlqykul3rCk7ey9Ja0LGXrWt0Vg1mGvJ1gCQuBqKEeZ+XM77EN5rTNauVfL3tsoB0CVGVTALd2nmepkZTmLBI9F/fSkPf67KRUr3YYgrpSQgGnGYK6MXdIS0nWQC4qJxkAQmnAVgPePdmfG9BkvXXjeM8boCg25QA+bzBtY9o8AZ3Ox4uyt2mZRBTt3UlFoo/inVO+kIyVSG7f/0KXEsjNH4Vij5jiOADMMgz5i9/csJc8BuMyyjRfXVlfOICY68rlpnFb8KvRA3oJceAPW6yIKsbHsLP7gPSKYZUkWMDgfIep0OkBQUxx6rKb1qxZCW1c1GhJnTjB78sbk4Xl+NH6kFbIaw6mpgdjj5Xxnvpmj9Hqt6Czejyu/8A5wV2oSvnK9MgR5pZVA+T06LMufgSKRKhDoExAjGrO4AEuwGVeUuMDOkVE3K+X0XZ/9B35codqhFUqH/U3s/l4P5Ad9+F572FtQO9yVS8YPGQV8GOFNuQucsutgAxoAxbAoYxdt6pYR9WOIi9cS0H7AxxfZI+lv5f8BIKS29zE0+Ms/qqyVJ37YCDcXw5AMAojnQJS0ZgF4KWMmJl9wc4f8dVFDb42KW/ewmdSg1Xr33G5QXgeJS0DCo5q64ZOiAxrnCbCc7Z8KwowFJqPTgM8NDE+cGEyFlbx97vgUmC3Afi/FCuCy9VWX2KN8DKln5SHELVckp0Ww5HE5UE/XPoi7XcLAWeXGfmh9GMtPtFcabWfVgBxo9hmME093MfyvyWRxGeUiUI0U9KqtQ28+4RH7UIoXeLVN5P+ra/xnlAkjXFx0Y83uKOsCQSQUHDH30GvR/luzCS7xzmpJ3N5nbihakS2jOE+sKs5lIXqAbm08PYN2IEaO9FZ8ALmrxQddaOLaAhmo1EdF1p9wz6jDhi4Vx75JuzGCy7ExphJXDsXNzg4P1FkzxEk3DMaT/msQZ8Idl6C+3lUOZtQ01CoQupdDBKUtVZCod89+BKF/jx7OiwE6z8U+VqvAgp2qDThpltoxdHMIQoWlgeM1I8HV3JJqrTJYbcwrsy7HbC6JwwqBzBF64uUwoTFW6EQ1AQgF3R3b8KDw4gq2dOrmblW+Eb/m4VDPprSz/LK5o6ovlQT2fmpYdbeUIVldfJciBzIeUO9UIjfjWNJjKeP/W4JkAhsnmfA5FFC6quN5K7qkudL9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 121ccad7-95ea-45ab-2b82-08dcb61d9fff 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:33.7180 (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: Sk9Ba+x1aOzReNgjkVRFA18mjYEVpgfI9QuhCl8Nb05tLwQV0mfTZNqmkax5ZZI6 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Adding a meson option "enable_examples_bin_install" to install the examples binaries in bin. Default value is false. Signed-off-by: Gagandeep Singh --- examples/meson.build | 13 ++++++++++++- meson_options.txt | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index 8e8968a1fa..0d0df4e36d 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -124,10 +124,21 @@ foreach example: examples if allow_experimental_apis cflags += '-DALLOW_EXPERIMENTAL_API' endif - executable('dpdk-' + name, sources, + if get_option('enable_examples_bin_install') + executable('dpdk-' + name, sources, + include_directories: includes, + link_whole: link_whole_libs, + link_args: ldflags, + c_args: cflags, + dependencies: dep_objs, + install_rpath: join_paths(get_option('prefix'), driver_install_path), + install: true) + else + executable('dpdk-' + name, sources, include_directories: includes, link_whole: link_whole_libs, link_args: ldflags, c_args: cflags, dependencies: dep_objs) + endif endforeach diff --git a/meson_options.txt b/meson_options.txt index e49b2fc089..e6f83f3f92 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,6 +24,8 @@ option('enable_drivers', type: 'string', value: '', description: 'Comma-separated list of drivers to build. If unspecified, build all drivers.') 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_kmods', type: 'boolean', value: true, description: '[Deprecated - will be removed in future release] build kernel modules') option('enable_libs', type: 'string', value: '', description: From patchwork Tue Aug 6 13:42:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142956 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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 ; 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 To: dev@dpdk.org, Bruce Richardson 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> 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+6It6R0JsNX0HsYSiszflokh3UpUzzgQkn4EkJl2h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QgPulf5Fzd457BnfOEQIlld1lWZFfhYhIO9l5lo05n2Z09F35R2zFp2uZi97uEvKP2wD828jH18KtI0VwYcjhhVeYR6gqrHCH2/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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- meson.build | 7 ++++--- meson_options.txt | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) 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: From patchwork Tue Aug 6 13:42:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142957 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: 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 587F34574D; Tue, 6 Aug 2024 15:42:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E34242F65; Tue, 6 Aug 2024 15:42:40 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2057.outbound.protection.outlook.com [40.107.104.57]) by mails.dpdk.org (Postfix) with ESMTP id 6D9BB42F1B for ; Tue, 6 Aug 2024 15:42:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F/D0f0PJJpyGvHZFsKUa65FbS54MeCH76lcpJWVRLUK3SMFL+uSaYPQnIVHh8YgbfF5Dp2tP1FdFrib5CUFsS959RsAoa8smZuIfUhZzdOJVGYrW91BdsQVtLnWZZXvquUf/kiY+hig6X/n8yy3ZnEAR8BnPTDKT54PTd0r1j4uq5VBcBAAk87KLC54bHhkKNJhDYpmJee7HeXTwXoq4xTNzJq5LDt+2Hx3k3q/TO/QqZL9W3+2D7SW/mv6bgjXYabxvhSO3mYyDFHU7WRpjYid2C7n9YrOWzIjTjtnfVsWe5n4oWDW5ewz8Ay3QXqBKsLFZo1RpEzNK8Ya9PxkPag== 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=+8SymFCDZLjZGn/JObFCdRHf+9zWIwlkelPGrRIZ6nM=; b=wdlpQ6wZ6tboWExQxSGBig/DKyS85pU4HqrkUM4685thYuTFtSM9/MPFKrf7bNN4IsJl5Lznmy7udSW6pYJuRUnSfSLaBAUa5ueTsKKjUGXY1ZdA0zu0Bq4rRvPIVKf8U7mjISmJPe4pmmKnOzcRsnaUpMjaZLzgjF+81ICf7oBjvCwZQAc+VU8KdU9c6pGTsE9y6YU9fVEoYTdmqoW2W4r0M7i7b0ZAYVEB8X9c4URxL602Z/bDOvniGOhcrahMmfpOccTKipCLfz1Hy+WNMk24/FeWNyNgFJRyurVOI6zCB9MGFVd2+DoDeerIRVP18bOf6i/DBiqKSy537YBLhA== 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=+8SymFCDZLjZGn/JObFCdRHf+9zWIwlkelPGrRIZ6nM=; b=DFSyNHb5PrJOB5TCPsP9R9M+VX4sVbfjWIP+ramMGCtaG7fqoxYia2rXqJ7qXT+0vHZ9LExJYprvSp0bvNugSkvKLwjF53QBq3beHZh5KrXswYZahjWklNyYYsNQx+ZHBo00sR1nBUGFvG16hKnxGquCXKLxSB08GG0M17NYjWmNKOoX1BHYrRse10lAijWeVD9jWS/qHi+a/vkhTt8Gc7gw19YKQYViGW5RVdP/Dciykx9qXTfqeiqN0L0oV0FXlsGftmwqqt3uA7FWN/tmAbvxSTFUjSgchtVhdeEmjeeuF4m4QnZf0lhH5UdSU849+EcdT7P9TR7DlE19brvCcw== 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 DBBPR04MB7900.eurprd04.prod.outlook.com (2603:10a6:10:1e8::24) 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:37 +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:36 +0000 From: Gagandeep Singh To: dev@dpdk.org, Bruce Richardson Subject: [v1 3/3] meson: skip symlinks to PMDs script on no sub directory Date: Tue, 6 Aug 2024 19:12:18 +0530 Message-Id: <20240806134218.3619913-4-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> 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_|DBBPR04MB7900:EE_ X-MS-Office365-Filtering-Correlation-Id: 84c1a6f9-83e5-443f-61c2-08dcb61da1e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: mTzlPrRXkK83Y5x15VjMIaOUGTL2Chkt4OxflMy+adPKpllM3kh/K9nQ+txFj76mcmZtgFzxp/R05rZ1aU/okVi5uqMQw5CG78Crusm5F/F4LV3XTFYGtirZOvZFyQE1SdUHljpZhDK2RnlinETPmTW6ZxK194+COTKyWi8sX8+DadG3mhOi4W2DhTl0YEu6UJd4XF2gjFYA0wG1o0fhuCjniYNu6n1P/nVFkH+JYmYoe48j7Ax0BjabWNyoMNHHy+l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2GLr3zo3Q860/xQ5eIjMwVJjC0LDKhjXBQqGlnzLjQGzG2u1/CHxgf8eutausoqp14ClFht9qsvweva5o+aY2Xd2npJsY+U2EaUkL3Yxw== 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)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KghA/3OkUbX5iZm05hzwisk2ivn36SijYiUGuWOw1jOliJd8BF1I96ccv3nzXbqat26Wgc6Vz23TLDrP+fgJhXQAPOzIek3kbpg0C0F5tcLfJR4RBjsgQiGpQNANuCjID5/6GGFTj4zLnh3FAjb6ntDpc2ggc7PzUdqYcgdclWEpPAUEfwu6PXrYMXyC34NexplOgzx7UGEc3ui7TP5AZztZq96bPQrKskt6JCPHnm7pO9U1jjiIZ3YDqV1U/vX0AZtvrYg46pXjdEEH7GDOo63xzQjWzLBQnok/rd4f3cZl+DWCaGfMkV3bzUHDAa49qHPuHf5HkxF8qerIZRObuNKtXOFaeP2TRs1A9YOek5+Yf3qV+9tiJ0C4wCEn0MpzdOY9r8OCZaneAFzUMxUMS9vD2rH6oY2vz1CRpvDf2i8FrPtFSv6s61Y7D5NlmeBWfyAGNOZHtZBZI4MaPI03P6OqWdJOvOVNG77PGCLnUCHRAGOIv7nI9AaanYKUv9xJLDEY8+GWrGuvdhYsJyzp4DoKfqSXeXZaBmFHsSVq5kxrm0M4Nv2cuIPUyoqBBsL8zS7EXRMiRQvjnGw1jTZRM62W56AiEO1rs5nXlazDh4U+NhBtj8/Ylkz6qolkQ5f8VtBcwoAq2efZ14eNpIUfpkDezivfWTJ4ifOEOan9N9ayBGDDpQRce6nXNo2Z4nwXkMrKAu4EtGUcICb84ffmLF5D+PXGViXaeWTns17SFXO6ZxDPn9foxhn9KQGMBnqG7AIszsuQHpucKNy990QOVWTNWP3mO0lOdliDk7fLUsk+aodGwpGmJ1jWDKoyJ1EtsLJV/lhdcvStlG43GMsg+GitBm/NygSgbW7o95yfA+rplWxlmnbSbg/QyjjorNav2P2E6DDSg22O6JQfOeISaP7vx2cYv/mPHQAAIJ9nA5L7nVjwp0cXfHsjb1WIxwYiqOUONJUlMWJ9F4/4dXKAo+k6gJGLr+jdHp5gQFUTQNq+2YuJcW7CKxJWnSFF8w4VM8F6wZHXVABJb+YP+QxNhKKCUhFGVp7/RPn2g35P4sVomh1MV+rXise1uPNB3GLABW3mQpnqESXOvJ5eIFBqkR0L5e+TA3dsbI3pndzZb1buEyFqcElfqPW5NTSU6CoGL3dDdfQ/r7DRWyCKaihqxMqycHX7dr/c59aLvdX3OlzSNNtf5zpWogMnXZoj3OTEv/GiPjTSNE7lSHYeUC+uInCxlreVlEt9cZKqBdUFixvmBlu8iyIgLkYt+oBE7ti2flCaDm7zO+t+itH0qXnQdndSF4DnIq6SyB63RN17tP9a5hhA152v2PKCsMwi01arttay1bFxEfwrNKulKaSSgPczq0dZegZibk3HxAYOxU8LogqoF9e6idHPcfLNcLM+iFD9MH6glgfhrJSX/+VjpK60/HtpXRiUuGMcswrONQ9uyaE3vwhmDSkhBFEarRrXMIUJ+5Fgezp1hvBzQT2R3Dc+cjGHYQzJNBZEcDnHoBXGfpepv7+Q5lvRnwzqM2z/IDbFcQlDtbDG6e6pjbElFfvJ6sYeNZQtmIJ17ah8JFM1r22G34dVILW9o8cZT8Ky X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84c1a6f9-83e5-443f-61c2-08dcb61da1e8 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:36.8442 (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: 9Fx0N5W8NADUptcsC0/3ZWEDV/mGVS2KYizdhbR9F3gJYqd5gXCiMROE2+pANFxD X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7900 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 if user gives option -Ddrivers_install_subdir= or -Ddrivers_install_subdir=. to install all the PMDs in parent directory, The post installation script "symlink-drivers-solibs.sh" can create invalid library file named 'librte_*.so*' or meson installation errors: ln: './librte_*' and './librte_*' are the same file FAILED: install script '/bin/sh /home/nxa12342/upstream/dpdk/config/. /buildtools/symlink-drivers-solibs.sh lib/x86_64-linux-gnu .' exit code 1, stopped FAILED: meson-install This patch removes this post-install script execution to symlink the PMDs libraries when no sub directory is given. Signed-off-by: Gagandeep Singh Acked-by: Bruce Richardson --- config/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/meson.build b/config/meson.build index 8c8b019c25..4c1c6848ad 100644 --- a/config/meson.build +++ b/config/meson.build @@ -95,8 +95,11 @@ eal_pmd_path = join_paths(get_option('prefix'), driver_install_path) # e.g. ixgbe depends on librte_bus_pci. This means that the bus drivers need # to be in the library path, so symlink the drivers from the main lib directory. if not is_windows - meson.add_install_script('../buildtools/symlink-drivers-solibs.sh', - get_option('libdir'), pmd_subdir_opt) + # skip symlink-drivers-solibs.sh execution on no sub directory + if pmd_subdir_opt != '' and pmd_subdir_opt != '.' + meson.add_install_script('../buildtools/symlink-drivers-solibs.sh', + get_option('libdir'), pmd_subdir_opt) + endif elif meson.version().version_compare('>=0.55.0') # 0.55.0 is required to use external program with add_install_script meson.add_install_script(py3,