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: