From patchwork Sat Mar 29 18:08:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60216 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D963DC36014 for ; Sat, 29 Mar 2025 18:09:17 +0000 (UTC) Received: from MRWPR03CU001.outbound.protection.outlook.com (MRWPR03CU001.outbound.protection.outlook.com [40.107.130.3]) by mx.groups.io with SMTP id smtpd.web10.15946.1743271751020567932 for ; Sat, 29 Mar 2025 11:09:11 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=yAoV5iCd; spf=pass (domain: oss.nxp.com, ip: 40.107.130.3, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=egP8z7Y2tDhUVorvhI78cjukvCHUMRFq55zrWasTHw7ji0gSuPzNld+56I3LdyKOhilsGt9LdzNMoYWeC3gFlNw6HJnbgdVG+rPci42ENxxJ+RD2pdq882oY7yukf1m2mzddqEeoJCFsOd/PuK47uPO36el4Teq2HwqUCe2OCQNzdGyXw5lVa2NNMiZkOFDv08IYUpMnTjs4Rw38I3UyeB6hVoYD0OHwzED+yTDGAESq7wpZ7Gg3Rp6jSiu9hSN5CQlxOu5OQSdyGfSyUjpaYOgFzsX1yww4MvJXqBVVOkDK+TungAoT5+lLCUnFRIMcf0DY3p7KX66oMAzDsPnYPQ== 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=Mc9rrSXfPpMfcWVDxZpVzzUoF3Tgh0SR1tW89AfE1rE=; b=jxlspsJBttkQ8N+dhghT09v/7TtKQITct2iHofew4GS02cKJmWUa2ChGC/bBYEjz5XL/wo9/n/tUsWOAMaFY/p78J6r2Y5Y5Ks2HOEoyDimRsJuLN8/KJ9P/xVGFMt26WerNW759E7yu6t6eptvbEmL4llFjgMtyEvNEQggqckPeg4LJ1ctS0xObB5rZ5KcvW5uyGkN8BKJsgHpqOOfYKdKvKzQkW05XsvjIYkbf4PY1bOtb2a6O9r74IJjN41F0xRm3gWrWX3VVBTcgi76bcpqlfX6qNpbqyHnhqq4lQOvWniieD7Batvt92n8EQbDB6cRiDCAFUFjM/iVL0sDQYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mc9rrSXfPpMfcWVDxZpVzzUoF3Tgh0SR1tW89AfE1rE=; b=yAoV5iCdqo+MXYSpuRBRzMtzg4wYwD3JAzZjzvqDW4uu3V5zxGVccAwTChSj8F6Eu9sM6Plxd9fEXNsf2Fuhq9YMLHcmN5SridzPShqopOuzuPRWy87HLu7+J1sWaDw23LrlvmPVwBdBin38DMaXrZbZO4f1kjryZbulur17bXA1ZfH9FGZeS/G3PNXAAVmpKn09kHtsOrooMYa2O1DaSDFRd/HcTLU27aiZ0tq0MwHnRtPRCRUyrb4azBJJVB6H4mxAL8M+zGLK4GOjuuRce9zslmvNOHg8z0l7v3Cx5pBHw7u4nSRqR4ZvNjgwlEZEauoC3TaGAGI7weqqJvgpVQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by DU0PR04MB9394.eurprd04.prod.outlook.com (2603:10a6:10:359::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Sat, 29 Mar 2025 18:09:07 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%4]) with mapi id 15.20.8534.048; Sat, 29 Mar 2025 18:09:07 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v3 1/4] toolchain-scripts: Export meson settings for SDK builds Date: Sat, 29 Mar 2025 13:08:50 -0500 Message-ID: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR03CA0131.namprd03.prod.outlook.com (2603:10b6:a03:33c::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU0PR04MB9394:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f453473-2ea5-4d3a-588e-08dd6eeccbe9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: IL36hY70yrcfdif6vk9oI1h5uZECXmnRx1toKtA12jZBYG/dGSLNzEaZw+kCX1C3YMzpq1lTRuZRynDq4jN8QuX/4Q6B2AJWUDhSs5fUO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ozn+6xDQa1PjQs9wxTmzNxSoQYu9E4z6lAQYOC7fMa4IL5lND/6ApD0djwlVsMgtTwaNUKCCfUHrYnAre2dXXZLGf+pPaZGNpgaqP7m++qkNIP+I4WJovWVqWjPc1g0Cfmfbfla+Enx3m7AA2MUk4yS8yfp7aXYvtoKk/WimMhQ7dg8vZsIUzG256/rLrKCLPqkCIvfFQLXHfd5W08HeMOL43hiYzuYIixTLT4qjcakyjUe7toWcw6jEpf2s/g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f6QJcoRgZIRne+2vPS8mBy+3ADxdFqPNVNfC6W0lK8NKqLsHqCZUdcifR4TuQSHbBVxN73HGh7J3XNscQbTabqWXG22BVU6nCnydltok1kPEo1xG6T8WKY7v4G523c/YPbn1fw2QbH8qpp150Hglt6mJD5Ckm5Cf67GbPRFF7f0+H7vZQHu4ZG9xb58QpC07v93gk0r2doikeKW9yqjcLD5Vhi0qPfW30LOznK2iFRiNtt+SVuwQvluuOiO6mR2DlMLf5V0LrhX6WT2JLnauE8m/G6Zfapc+nUysp2GiTGtkA7xihSy8lw65ogBauWOb+8fMFpFQ67l6dVZCsETnelxO4ep4T+5d2Hy00tJFXHw8E/G4EnFjIoBeZtFB5GDRhcATK0DcPupwUreyLyKBFS3un8cpQIV6CchI2DuFuTj7LUivMCYfqiqWaVMG5UJaFOMp50bulsFU34g33b86hnKppU4dwxLFrhZu4k4VJvCJkKXUaP5fCxbuz/uCGoceHRxZzdyAyVDM6YmzeeZ7NXM+WIowX8NqEOOl/R3cr0qCCNsyA2n46d/Xzd3WM16sI9DWE6zoJn9T3Am7xl8PYAfe6fy/areOM7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be9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2025 18:09:07.0750 (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: UcNXVglatowrBY0JsZ/W28KtIzQyK3jTw43C+dX6m0+RgVG3xYgurv6u6NbtOIq/lslGj6J/eoqQTeKyddp4sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9394 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 29 Mar 2025 18:09:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213889 Create a new set of exports for the Meson `host_machine` cross settings. This allows the target cross file to be created correctly from meson.cross.template and aligns with meson.bbclass. Note, one might think that HOST_OS and HOST_ARCH would be appropriate as inputs here, aligning nicely with the Meson naming. That turns out to be incorrect since the script is generated in a nativesdk build with HOST_OS and HOST_ARCH set for the "build machine", not the "host machine", using the Meson terminology. See https://mesonbuild.com/Cross-compilation.html. Signed-off-by: Tom Hochstein --- meta/classes-recipe/toolchain-scripts.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/classes-recipe/toolchain-scripts.bbclass b/meta/classes-recipe/toolchain-scripts.bbclass index b59a295abc..e54685e965 100644 --- a/meta/classes-recipe/toolchain-scripts.bbclass +++ b/meta/classes-recipe/toolchain-scripts.bbclass @@ -4,7 +4,7 @@ # SPDX-License-Identifier: MIT # -inherit toolchain-scripts-base siteinfo kernel-arch +inherit toolchain-scripts-base siteinfo kernel-arch meson-routines # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it # doesn't always match our expectations... but we default to the stock value @@ -72,6 +72,10 @@ toolchain_create_sdk_env_script () { echo 'export OECORE_TARGET_OS="${TARGET_OS}"' >>$script echo 'export OECORE_TARGET_BITS="${@siteinfo_with_prefix(d, 'bit-')}"' >>$script echo 'export OECORE_TARGET_ENDIAN="${@siteinfo_with_prefix(d, 'endian-')}"' >>$script + echo 'export OECORE_MESON_HOST_SYSTEM="${@meson_operating_system('TARGET_OS', d)}"' >>$script + echo 'export OECORE_MESON_HOST_CPU_FAMILY="${@meson_cpu_family('TARGET_ARCH', d)}"' >>$script + echo 'export OECORE_MESON_HOST_CPU="${TARGET_ARCH}"' >>$script + echo 'export OECORE_MESON_HOST_ENDIAN="${@meson_endian('TARGET', d)}"' >>$script echo 'unset command_not_found_handle' >> $script From patchwork Sat Mar 29 18:08:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60215 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECA1CC3600C for ; Sat, 29 Mar 2025 18:09:17 +0000 (UTC) Received: from MRWPR03CU001.outbound.protection.outlook.com (MRWPR03CU001.outbound.protection.outlook.com [40.107.130.3]) by mx.groups.io with SMTP id smtpd.web10.15946.1743271751020567932 for ; Sat, 29 Mar 2025 11:09:12 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=Yzu/wbUg; spf=pass (domain: oss.nxp.com, ip: 40.107.130.3, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w8RUIKUMHsoWbNFwOfOB5ZQ7ucniiWl7f5FH7SN961TX+l7vjGhqG6sEs7TYvDXN8IppVxpZMTI3DDH52B4YmMLU+B41eZ8YI190s76XDgD1qfnnzPYDW7r9YUAXKBTC7HH0tYMjBZeT60kIl3E0yiWweZVDlNXggLDpqKa85xNnq4yYscVY/uQTG0sDUb8m+XDcGCS49c7PjQt2jrpB4H/Fm0Vc/u1B+BU1Zn2bp3Zq6tmqJpk4JppElcYBIZxV37wWZnK8uYIwa+uEbe1R+ieVTriPIWZSWHo5zGkMjSJ61bn9uopCAeK8iZ3fnrdmGQdM8jMZNeZQd61+cj1Llg== 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=7O8W/YGLkZ4MlExFF4Pdk7kGC0sxc8jOuSdP2DTgsH4=; b=MG7hm/0+nJomkcenhj8V8unpN6mBsXVH/LEnd6DctuJgRwy1qhJSq2EcyXEy0wAU6xBVHi/JAJQ28BTRjcTvjA9R3uRyQ9JTd0MB79JCGN+XT7HS/E35JR5oEcvGXrpr93qexqYw4V3ggAmklv99bNRO24/o31ctiARFKo5Rev0KU1GU1mTF9Oc6sWNzHSyFk5liaQvTQ99WB6y7oJTc1A+owU+RFEtJsJTXZlfPrVpWzwdtExoo3/H7CKmZHyxS8X+8nLYbdinaajDYrxZRlwhD9zt0dSbLu2+lNMxK0894NdGcZoJt16vzQPWBUr2dpdKy0L8HpPdcSbO/pLKNiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7O8W/YGLkZ4MlExFF4Pdk7kGC0sxc8jOuSdP2DTgsH4=; b=Yzu/wbUggkIJYYyJCJbBtmsNikgZv0c2v7Ml6im/L/NcaOUlgAH3z4x1M9IuFXt/c4riuBe6qXNuS3kW1SjLGiy5AuwlXT8nnLljQdMl9gwzArzzFc7TuSIV+HJ7BBnd5S4uYUR7vr4TgYIGToUvSagmi7+S9tiQP7oy4B5ZZOLnBwXXi2o8T20RegZAPgD7A3jzmVrbresCN5Zo7cLFbb1fLnDacV8Fc+AGPxT1A2hvqrdDVUXYnFfX9v1ORo505HXN/bxzPdqVy4e5Hmm7u5GJLy7obPTnFgz+aDOARAP0Vx1PUA4wUnOX52nqH++EAODtfiq/8BuloC1epGzqnw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by DU0PR04MB9394.eurprd04.prod.outlook.com (2603:10a6:10:359::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Sat, 29 Mar 2025 18:09:09 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%4]) with mapi id 15.20.8534.048; Sat, 29 Mar 2025 18:09:09 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v3 2/4] toolchain-scripts: Add Meson settings for Yocto build SDK Date: Sat, 29 Mar 2025 13:08:51 -0500 Message-ID: <20250329180853.1057381-2-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> References: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: SJ0PR03CA0131.namprd03.prod.outlook.com (2603:10b6:a03:33c::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU0PR04MB9394:EE_ X-MS-Office365-Filtering-Correlation-Id: 62ab76bc-7b74-40c3-8890-08dd6eeccd2a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: ys4h4QLT2v9RcqTBCf5I3NJgmp1DQz9abtfbkuedB2UOZ/zQJB8Cn3dcZYYq2b/fBpBFg/JQ9wtIIOgiEQ+40zy3gUCCfThW6V0+Lrh1TwBHn5JGypO0cHKnSdXc3FkkNJGWZaQTjafs555AKAoNZ1QOClACpc3IVDidEWUoT1cmDDDorfYN/vHpDS1mreLbi2cQeb6qbUYT16AMyHSVl/ubTQXpx1O+AnJFsPAqmyDg+xkFVDo7BAb2YPcswWyJlo9URXQxM71/mCrpcu5yu8/5fQRei8AW9rQEmxWrERhlqPtuIb5+Q0sHyriFeHStQ3PTcrOYha9erjYK2/RCw9Pc3dBHVYHZEovzETU7+X7Ze0gYX9KWdl8z7YwHS9QE1TdCFaakt24VkVBjkLDFyra6eyi1vJGMs8HGGQH64AmT6OiU2PtAKN4I6EaZgbQT6B/1Jo7D/FliiyDbD095CP4SZBJdfjSwzjiB5y209KMzEKjn44Unwm+pOOgTXDZqS5KwCVpYJmVi6OX+HAStrW/lxwgPkYFKfoMRWWeb75krhSp2m6YGmf323CiNC3pL2b5OINK2f2GSAMQuaYa2AsyridpGQx52wEchQe9/siOWHa/BXM1+dvHrNX2R4IQqpf5rK5Su8o8FpbAJI73x9FXdwR9mUevcs1TdwU2d+OD/8Xp8eEDWSeueRGYXk6adamD2m6D/mVvbTEaDBfwq6i8z0w8WE/56Hg664OlKKZezGg8VVxfaQJk8xpBBstcGGrRVc2TkO+FBCpXHDz2VKBST4HfxvH/vV3xf2wYXR9hPpL7EoAZT37LzE7xg9IerdWY6kboIGcw+EFpgVTKYjy+UaVml0dxPRVzJ9f6NmnkYhQmuQGaETPj5sCUcgb425XZMZcquowV7sQ2ZaMvZYmHn73B13K2VLoNhHfw5YTVuKyFapy+qRCAbkL6NcDlNkvQvT0952k00BRtb9zac3WEmXAvHqLrPOQzLH/3dZwY/dPBpU7kYEe7VGCdxg/UenNk8p345YUPYaStvMdJrcsAXrm6aXOH0p+8S4MnY3WeVvbj8mZM0dfcDZlcM0/eQlF9SzatBrS8Zl4TjGOg0ywjN9k3xddA2mj7ECkbIJoosFyc4oEq/S3eQZgqGETLJ8spwGK/a50e3klkacz27vstUHf9IjwTpsfxaXiTa0V1k5R6x8kyCKSpiAN4vv0IqQu2YoyX27BBbfVtaFnBttGhngHjN7JiR0zekFOjGBgkcVP/yl4bOlfxFTSl5V3hLsxI7jJEZcVbH7eA/GIy3SMht1KDGXpMxL29ramtr/i1rD3lZZhsGFzJc3dh/EQd5wVGeULOAGxm9PgVlu3c1/qD1YDXhXAQMBoGL00/5c0JzZ8Sd59e5G0XyW0UZoj7e1U5la7hffVpbS67QZ/FB5X95PHLlTjJIQGNZh6OyE5gh7uD3dRlF/qo7jYEim6zr X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /EV/j57ld1H/LKXZSzaSqJenql+iN2nDYBPVf37rTj4rOCPB5AhQClldVs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Ini0ehf+r1Zfbi62K90VeVedr+P8GBaeGo6J7haQYDm33mY0QNNzuhmjcNRpUlSOF3dB9kTNJNHR5KQBIY/d4ICle1WtbL16lFoI5udpT/KiTE7mE5MsPa7hHH9Rqs4fWxnkv/mJI3GmW8svofudbYmYrk1O25PvwiManXl5JAOdX068qRxf98R222tVGILE9KQb24nKo/1OIERdP3D762SdTg8ZkKSJCU5bdL/2YNnDypNQJPKdk9PlCZdR4Y9Q8H0ueBONBabM1a/Bb3eTEgw4kWrZsh05U+MF0QnBpV9yJ8J025bSBK9ah8BJcRSrAR1BJFil1NUH1JmEMt5+ciJsBL7zn/3Ife3/mFwFcsiEpONy7Tu6GraObyIX1qeE0WmiGR98aXbr6mAoXMavvlqn4UFaGHC2AGxPQjmlvy6bECGlzECOqRNFyNAQBqoHa8FQfpGt9uc1buqE X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62ab76bc-7b74-40c3-8890-08dd6eeccd2a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2025 18:09:09.3515 (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: EnjfWtb/XE38Qe2W0nsHxoJYZ3Wk1FDIaaNabeOIwk4gJIYhsIBhDmKzMz1jaTbfX91F+ikOHkYD+V0a5GpcPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9394 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 29 Mar 2025 18:09:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213890 The Meson settings added for the standalone SDK need to be available for the Yocto build SDK as well. Signed-off-by: Tom Hochstein --- meta/classes-recipe/toolchain-scripts.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes-recipe/toolchain-scripts.bbclass b/meta/classes-recipe/toolchain-scripts.bbclass index e54685e965..3053cd0f1f 100644 --- a/meta/classes-recipe/toolchain-scripts.bbclass +++ b/meta/classes-recipe/toolchain-scripts.bbclass @@ -103,6 +103,12 @@ toolchain_create_tree_env_script () { echo 'export OECORE_BASELIB="${baselib}"' >> $script echo 'export OECORE_TARGET_ARCH="${TARGET_ARCH}"' >>$script echo 'export OECORE_TARGET_OS="${TARGET_OS}"' >>$script + echo 'export OECORE_TARGET_BITS="${@siteinfo_with_prefix(d, 'bit-')}"' >>$script + echo 'export OECORE_TARGET_ENDIAN="${@siteinfo_with_prefix(d, 'endian-')}"' >>$script + echo 'export OECORE_MESON_HOST_SYSTEM="${@meson_operating_system('TARGET_OS', d)}"' >>$script + echo 'export OECORE_MESON_HOST_CPU_FAMILY="${@meson_cpu_family('TARGET_ARCH', d)}"' >>$script + echo 'export OECORE_MESON_HOST_CPU="${TARGET_ARCH}"' >>$script + echo 'export OECORE_MESON_HOST_ENDIAN="${@meson_endian('TARGET', d)}"' >>$script toolchain_shared_env_script From patchwork Sat Mar 29 18:08:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60217 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D90CEC36013 for ; Sat, 29 Mar 2025 18:09:17 +0000 (UTC) Received: from MRWPR03CU001.outbound.protection.outlook.com (MRWPR03CU001.outbound.protection.outlook.com [40.107.130.3]) by mx.groups.io with SMTP id smtpd.web10.15946.1743271751020567932 for ; Sat, 29 Mar 2025 11:09:12 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=Bm7EMIaL; spf=pass (domain: oss.nxp.com, ip: 40.107.130.3, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vCTYlMuDI/ZQlC/83HZp5uIsPbeN8DWykCiSiOKytFXQnfk0SuzeDr/GjwXTLLlim9spZZsO7dp9clUfPN5VWo2IlgPZ9NnR65XSbfKE1qnT/kwY4UnSq+csV+xo7guWwV0LCqMtNcplJKo1svMu5rYFAJB30BfZpd/8UGQIEmXVlv575n8Lw2xwZ0754DeFRkPafTw+jck3Z4C8d7qnF8bZiapkD9quyWKj7COrz25RNr0H9mouwh6m3A8gX7tef/X0Q3uDD8jUMPflx7Wu5uDvHf/GZmatSgMf9Q0fBENVuw7WyGAb3F2HGPnG4O5rXsdrztrcIWyIt5s3qz9X7w== 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=BEEEMq2DcGspCQsEy1omP5cnSh/d5Go39OBT9X+FlyM=; b=Qo0o2aV3wDjtFzVSLRAxY5ytS6hcs6J+WMcVJ68pbABUSJrNRB0DihGigVjBNTI9hK1omh4lQ8nkO+0iygHEtWwwAT0V4g8lnABc0RZeF64PqiAUwKafP2W0aEc6M/kPTYxnUhVJrZaGeCurWguHZIec4+lFwkWZxLKeLQANpP2/cukPntwV72N/B6Ts1uwTVfeml9LJH59+CzQySTZKZ2e7479dg/3kk8qd3wGPVzs3Ar/3LyllVwLb+cIjHT2NzO7oddR6pswVJByD99iecRAFfzKWL1lPtnIJU0FU/s9dPmw4OICf1UiQ/uwQlQo898yuex584mmLAIUliWQOdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BEEEMq2DcGspCQsEy1omP5cnSh/d5Go39OBT9X+FlyM=; b=Bm7EMIaLiM0J6d3w4A1/3XvrnRW2dRkIsu+9STmm0kL6LrQvluECF9vretvEGVmiWL0oQPwxa1tmmhGUX4KWD8psUKprWygrSjO4u1rvHxdu3D+s1dVn7B7eFYg4Iv+g8RJbPfpozTL9ymJDZGYDWjxpP3CaUjJASkdtsoy06+VM5u9ooOXyacRjgwxmoahaYSSfAi03l//M5RInsuLCTbeOTt/yUeJmpBY+e/rzWmmE2yU5XITkC02ppF+0ZyvU0/H3grq+V9e6weIw60vZgvSvIVKecIk22Bhbc0toowCR1FnWZEHSTo5wzHWcZ14IlfEFYEOauUU/+dV5IaL5Sg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by DU0PR04MB9394.eurprd04.prod.outlook.com (2603:10a6:10:359::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Sat, 29 Mar 2025 18:09:10 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%4]) with mapi id 15.20.8534.048; Sat, 29 Mar 2025 18:09:10 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v3 3/4] meson: Fix host_machine setting for native cross-file Date: Sat, 29 Mar 2025 13:08:52 -0500 Message-ID: <20250329180853.1057381-3-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> References: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: SJ0PR03CA0131.namprd03.prod.outlook.com (2603:10b6:a03:33c::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU0PR04MB9394:EE_ X-MS-Office365-Filtering-Correlation-Id: f6aadcab-8715-41b2-ff0f-08dd6eeccdff X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: PkkbKhFbyAOOcq1S2bDCqTXm40TUJZkC5+ZI2pCZzgJW90dV6yHjI7D3A6jkyrOf10qXt32cKRW59FS7RTNd1KkGVpfftxAYNtoy4LHWuHHLkxkKF5vX87EYfF6/l2JY2ULS2cWfkQHB3MogAZ8rCb4NiSvwLwV9n5ho+mESBxd7MFQxw+dFvp1DYHTRslZovLhoNoQ4UcBf2axRhigd4e3GdUE7wx2LGUVLKf2tVp9fTXipEA/FKHr2fS574MRRk3Ry6fCGeQDSMnp/NrjFjbDzAXpsa9AZdhtsupyWWyHVLASypGxvqCtjLI9H08wgAS4jiHZV8YNgipdPiEAKNDw+MGpuLndF1LCUcWIR2FBb0JxP61X/OcvTHZx0nAK1z601qBGq1yleWyfyYrMF26VR78wVNr4RcRh/520HPIADdM7WqQ/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.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kw18lMlHeGgeMMIDV76KuteRhxQLBzDeJZ4Ec9gg8QvaXEa1r93VxNcTUNhcPwBWl1Gi2foc7cBrjakhYSY4SNThca/bSoJob+ru2avVTHr5+Jw6DVa1kH88FsXA3Yuf3lVxT5uFUY73ZmZjMoRzYJL2vcsfDknPW4jySE2++HkuHnUDyNxs4UA/Y/KIjzlUXNSrys5zxJcW1FntAxVemV9jAAbTn5erIRUM4gDrVMFZbHwR6JYSl1IUAgB4jQRFEqnhJr4rIKuTTJ+/U5ivxAVD+O5f81PF3cCaMNx9NZZYBXNNP1vCW4Y6c/Y7MzrnPsRqRQULQW3dhRGvlbpUtefo4Ni6Sa0G4q/CmMHVkYKf3Cjhu24KwNnf0HJZzRIwjPkijGLAAtpSD+LZJg2v8oAXKe0Csk/2euV7gvXbAqoQLjq2sfNMq1g4CoSvUPcDEl9mYS/4igWRwkSkPJ5sHpWPoKlSzYK+/z/AjHuift+gYE6qdRd0SCWn95Tvp6t01SRiWaNfzBx4esJYi7cTU78pMF1a7hjFeCqdnCmLxFOMndYMOyJulWRP3vakqYCZ798bhGhtI1sR4g3sOYyx28Th2IXgTEAfzfbyGDRprd31C3LeUg/JscuxDWlMHoDx70mQsjiCYu0XptY8v7LkIKn5yCxFNHU0oAWRKODtuZolVitTm2Fbo9HDWepaz3bWcOnXp+UtRe2lRrIwsb1WoI1djffltM/Tgxn0Zl/COx9RNyne7iBi6bwVhwuNGcavR2XQu7m+AqPpiYH/bR99a2Ei6S3VSqm2pXjiMseW7rGRpd03qZFLEP46rhFaAkJ7SxNfccj4vCKEThQDmBY9/FD4luLCsFPnOmDSOn8tcUX1Tl1V1S1a0dWeQwEwEyC994nvZKX8iq/yKzMe9bRS2JW5R6qRCJ/zTplIGlTEeiwPI5D3QRWdttZJf8Rv7G7gbyc4XjhEigHGP6uTuB3WEe6nEn1H4KTHcNPJX8cNdWV08uC2B1QY/hDSGW2m2jo5OypsZMWcOiZTlVtqasC+dSXyxja4j2GRO0VbL6mZbjY9R4TsIOZmcxB3MtWH5D4Je2hjtjegBddgIqqwxgZMbsLI5vxpT6+A+URe9JWm4ZrBHooHSAihs5SBGjMqDfTmDrmZ81N0Umm1DPlHffil5xJO7GqGkzCMIU9O58WR05wwiER5OrXIrxkP6niybQh1kKwlOkziNAWcE7EkLSW731qIMH/kuquWvpLwcQXRl692fZDsLjQVkMoFn3I58lilGDspmjnb52lgG2BIcCwuDkFO1YM8J+rDBHYh7+g6Ny0Lqq3NIvwzjrDofAxmbhMzlZqu2uUf4Cc6rpng/3bMvR0paC4IfjaM+zKpG7/aeZHwyGgH6usLtHWRQ06Mb3KCSc0wSNLL+IxQfjrAbXibFX9Bl24oW5T8qLe5AegHSQkHfz7kKgUuElygRy7cIF9r9d9azsaLY1vhKp9FH5Ymju+AiBdPFoV3FbkcAUJ9GGXCbb8jihCaJG1j8XWkgi3omneGlxTvxHtFAG4bTixeQo/nhdt3eF/f32MU4tkBsaAVWiSsrexOkHMj2Xnso+2Y X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6aadcab-8715-41b2-ff0f-08dd6eeccdff X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2025 18:09:10.5275 (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: Zq5Mj7l4Mlwps2piQxgyLZJ849a/4AjbctINj1xtPVfiCrkS+H6i9WSzFphdnpB7yyaB/3cjFXFZxI1hYlG68w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9394 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 29 Mar 2025 18:09:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213891 For native and nativesdk, the meson cross-file settings for `host_machine` are incorrectly set for the build machine, not the "machine on which the compiled binary will run". See https://mesonbuild.com/Cross-compilation.html. Signed-off-by: Tom Hochstein --- meta/recipes-devtools/meson/meson_1.7.0.bb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/meta/recipes-devtools/meson/meson_1.7.0.bb b/meta/recipes-devtools/meson/meson_1.7.0.bb index 44872a5f7b..3e89669807 100644 --- a/meta/recipes-devtools/meson/meson_1.7.0.bb +++ b/meta/recipes-devtools/meson/meson_1.7.0.bb @@ -118,18 +118,14 @@ needs_exe_wrapper = true sys_root = @OECORE_TARGET_SYSROOT [host_machine] -system = '$host_system' -cpu_family = '$host_cpu_family' -cpu = '$host_cpu' -endian = '$host_endian' +system = @OECORE_MESON_HOST_SYSTEM +cpu_family = @OECORE_MESON_HOST_CPU_FAMILY +cpu = @OECORE_MESON_HOST_CPU +endian = @OECORE_MESON_HOST_ENDIAN EOF } do_install:append:class-nativesdk() { - host_system=${SDK_OS} - host_cpu_family=${@meson_cpu_family("SDK_ARCH", d)} - host_cpu=${SDK_ARCH} - host_endian=${@meson_endian("SDK", d)} install_templates install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d @@ -143,10 +139,6 @@ do_install:append:class-nativesdk() { FILES:${PN}:append:class-nativesdk = "${datadir}/meson ${SDKPATHNATIVE}" do_install:append:class-native() { - host_system=${HOST_OS} - host_cpu_family=${@meson_cpu_family("HOST_ARCH", d)} - host_cpu=${HOST_ARCH} - host_endian=${@meson_endian("HOST", d)} install_templates install -d ${D}${datadir}/post-relocate-setup.d From patchwork Sat Mar 29 18:08:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6EAFC36008 for ; Sat, 29 Mar 2025 18:09:17 +0000 (UTC) Received: from MRWPR03CU001.outbound.protection.outlook.com (MRWPR03CU001.outbound.protection.outlook.com [40.107.130.3]) by mx.groups.io with SMTP id smtpd.web10.15946.1743271751020567932 for ; Sat, 29 Mar 2025 11:09:13 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@NXP1.onmicrosoft.com header.s=selector1-NXP1-onmicrosoft-com header.b=Ha8n+yWf; spf=pass (domain: oss.nxp.com, ip: 40.107.130.3, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RGVElHPWQj6MdiQ2oxi37TjzCV09i6dajXMAdLGDqkOZCLu2JmZPNHUpPBV97TgFRX9hgtYovBSfAzaFoSZfzTu1hlWONc3C1EOnEgoKch5s4Kzuw4WqXiE03CQKcVwP+M7vQr0lqaTLr5tPCdJrkB5s/s7v7zmRGUkr60i4d2k2crturM5g39dwm6ti+xpE58RR0XsHVXfZQOGnASKSH7HHBcIeLc8kJyUX60MPKFh6BSHvvqDYb6fxuib+aC3h6KmUsxVjlxEeWFOCZN4UpFe7flistdKBcP63GpWCfmmy1HWB19hA7cDtCWvVRSOgTfNPbJISkS6KbbrsH13uSA== 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=8FO87xwqxP7d00iPFCh0YkZyeqnOpOG3yddk373tQ6Q=; b=REWMS/boWAphtciEyCufDadgC41Yp3rXc0YbZUWKs0eddHcZMyjnfxhwv5mMjmyUhQaOmMuyqyfPY+qc56qTpeE9BBSoZ3vyRZDqDLjl7nhj6vn8Cept7CRRywt7jnmRubY5JZhIWisuhCrZMs9AyRC5anG1S2Q7OHdtI44YEwrDMU/cQczx6qfaTrp9Vobe8jkCpSdb3rtXCkaXJUPw5ZYWm4THyctND59Rjld3khc0YKMSwIWOjDRptu8ye9n9URXTKBpuJxYnkoFxnA9qAB/I3Fm/ZlC+xc9t0QWowKMhrciJ4hTwzViDol/VUx+3ylBTm913bs8JBWmIYjH8NQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8FO87xwqxP7d00iPFCh0YkZyeqnOpOG3yddk373tQ6Q=; b=Ha8n+yWfnQrwOEg1k2NCA3iYCW/NEgAIEXkoZP7izcRTYHq1J1d02xXmvFDi/m7ewir98mHLeswnInJTFx9nJbhTEFGXraa6Vt+oBj4RMiOEw74cQLekzsf7C4Zdo894yH5NXBwwczpH79nk7Va7f9h9bVAwKjt6Mv8olnth7kt8JYPBk4tipSZUxJKyz7OmqVhIdLHSnCo3ucWDGJpd8FvpEwZVNxk6BgQD02N3WN3DCGuzKx1yPmG3QU4YHujf6REYH9sUTNMBASRCeoRVkKPLv05kINgMEAWf4FLc1gJg4rABAY+Qqk0SzZIAR2vKLKWKr17XH08sJ6GmnonXRg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by DU0PR04MB9394.eurprd04.prod.outlook.com (2603:10a6:10:359::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Sat, 29 Mar 2025 18:09:11 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%4]) with mapi id 15.20.8534.048; Sat, 29 Mar 2025 18:09:11 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v3 4/4] meson: Allow user to override setup command options Date: Sat, 29 Mar 2025 13:08:53 -0500 Message-ID: <20250329180853.1057381-4-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> References: <20250329180853.1057381-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: SJ0PR03CA0131.namprd03.prod.outlook.com (2603:10b6:a03:33c::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|DU0PR04MB9394:EE_ X-MS-Office365-Filtering-Correlation-Id: 65a52d50-44e3-4dd8-b496-08dd6eecceb4 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: GoF+jJD5NHOnceHF8vGM2wp3SCBui3XyW1n91CI11n8gdrVrsTmtpDv5xR9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Gv2KPP7nAkkxT3WEA8RhVX6XqMgtQ51vjA4PMiaV3Kg3IbDG8SrHn9G01W+fUDmToouY6YOu/9cECdc7khmRW640JjlcH0UHP0Wph60L99KzLtWWm0Cb+0z8lV+nNkSJJsmH09t9AbnzIQEq0SKSvid22+cggMjiedKau7drcybqC5eA7yhiNkF/CwpP0SHkT36ar/SxuDlr9XSrFM7l9rEttgUziNFUh7tlJ1VXX7P1RMfsZ7ltydLkqOaZFjisPofcQolM3YsNAhpTgwH1Xh2xGxatJeoqijAH6wpre5oNvrwMoLk8Ie5GamPDeS56IiDPPVP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9pL0F4gwwXv/3oLo9ywvcqOFEbgdeeIXQxuGxz+WltPlciMW1RexX83ZqB0yLBV3FJHwScVpGLHlcf3TNRwX3aSKlwck8/Ag10keRMQdF81MwDHmE0uXtZXOjOL+uqrPbEvZk08jansvMh6O/DhkEsMlIxkanbwtTD8RIEW4fjgj9EzqEbXKVDgceB1lWbmTIInwZGb6Vbx+AbtFxW+t6l1RDVpvcPGFI6Tu9wdtrGQazvXIBgIP8gvL7EkMJU9V3rE6bqFk/0TyhH5jAydTfpRFaz3CrvyP/RzeqFLhaLtSPDFNjc/O5bwsJy5slaZbroTCkafEub1SOWvF0d0OnnWqViHN4ITJjhoU+VCWAfb3x5faRLn03sQDiKp5ampSF34QD5ZnI7K2725IY8sseFUbs8ytGQRuzxXCo/WTuxJZ67S8QOMFOT+JabUevhLnU8mvT3gQWuIqiCGo8fjChqLJtgK7WRhjlzLZOjayaIWxtePeLHHRX3PXgDKZpbX/fhUpGpp/ByrAMaWhOb/jYOf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xp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65a52d50-44e3-4dd8-b496-08dd6eecceb4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2025 18:09:11.7784 (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: iBU3hKfk6kSZ4pGCNElJV6Y+uxqpHypvfXb274ndn52hsJcuHNVg732nDQO67AqLU5nVU9KpEdYoa7iG7BO+sQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9394 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 29 Mar 2025 18:09:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213892 The user cannot override the setup command options --cross-file and --native-file because the meson-wrapper places these options on the command line after the user options. This problem was noticed when trying to build with an SDK using a custom cross-file. Signed-off-by: Tom Hochstein --- meta/recipes-devtools/meson/meson/meson-wrapper | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/meta/recipes-devtools/meson/meson/meson-wrapper b/meta/recipes-devtools/meson/meson/meson-wrapper index 7455985297..3aa1a93520 100755 --- a/meta/recipes-devtools/meson/meson/meson-wrapper +++ b/meta/recipes-devtools/meson/meson/meson-wrapper @@ -14,8 +14,14 @@ fi unset CC CXX CPP LD AR NM STRIP case "$1" in -setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1" ;; -*) echo meson-wrapper: Implicit setup command assumed; MESON_CMD=setup ;; +setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) + MESON_CMD="$1" + shift + ;; +*) + MESON_CMD=setup + echo meson-wrapper: Implicit setup command assumed + ;; esac if [ "$MESON_CMD" = "setup" ]; then @@ -27,5 +33,6 @@ if [ "$MESON_CMD" = "setup" ]; then fi exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ - "$@" \ - $MESON_SETUP_OPTS + $MESON_CMD \ + $MESON_SETUP_OPTS \ + "$@"