From patchwork Fri Mar 28 20:01:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60186 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 05E98C28B20 for ; Fri, 28 Mar 2025 20:02:01 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.61]) by mx.groups.io with SMTP id smtpd.web11.3390.1743192114318143811 for ; Fri, 28 Mar 2025 13:01:55 -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=AHbF44iR; spf=pass (domain: oss.nxp.com, ip: 40.107.20.61, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h9LJQvLrm9VFlasBaL2ZgKnl5n8PV75QbbdK8P+sQJ+jriIuJneMHOVzxozQCCpZo9rFCWcuQOVnIcl+YvGGkWgh4NhcS8ofSF4N+zisFikvT1v8COb3FJ2HuagfB0IJKS4qnDrOivqbjfwkZA8q7FjWiKd7Qf21U0IC4QeAFkYLUBdQOdrENSGGxmSefFSrobGqFGThkKD6LPETchqrRlJBQpckwqggjBoxq7xm5tm7P+II8xa5KeNB+cS+QjJuQ4IAyrrRhAgvYzyEv/f59tHg+IOxVf4c9bB9dxF7GDjh8d84q4renL0uV9A4j4xSg21/kz6divNfEkUINk15KA== 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=MCmxYkuBWeZFXJzntiDN/eVSpW09o47VW+20bSN+ZPM=; b=xC3e4GQkumkh61xkuq2juxEMgjO19Y/IZc372FUnoN0qIyIuScQ1JoWOHx0DPOGs00gxyn2IBIeEx2Lku5woA+w++S8waXftfmGpNvCosuVRHll2919Rks8BGwb8nX+PFjvQfyBQ3rYgSWppqrXvWBK86/qMKIsAOkEix9WOHxnQWUZXXgHRyntqYvpOJp3hks+m0EEXrTwtQYmsbB8z/1lVZSJAC4tBTXeUhnKnx+PlZxzFl35/tLJoYr89np2cPpKgyKBin/TbnUOWY4eHsjx0IauLBpFa1iWmsxd0Lz+GpkB45IO66bDnef2JekgaCszxH2WVKcjYsrwLi7DyRg== 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=MCmxYkuBWeZFXJzntiDN/eVSpW09o47VW+20bSN+ZPM=; b=AHbF44iRQyfMrVC4dxOdDUzJDRMhqV5RKAox1N7ffascLBxrvo0EIPgofJ2hZU54MTQAmxwrG33FTjXZIQ128uwuqyU2RbHql4yB9UVVaHVtINYlWVK4/090rIt6UNwXT0kGyvah4eKXBfGpKugeeaRZ+zdlsjyKE2E2mPLe2vegP5iLcqn/ePDE+WXgo4lFYGVxa1q92EFk5+J3y0OxUBp9BKlXqQHhTkmZEjO0UsjJZoLoWr5cEiPl/QFMvRN8Q1OVESjxloJ/0ux4ZEIABGsFVnQ4phMaVTWrq971rKp4jTbhsQ2j+66ja0alFy1zVEt5gI5Yj7WT43w7M39J7Q== 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 DU2PR04MB8741.eurprd04.prod.outlook.com (2603:10a6:10:2df::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.46; Fri, 28 Mar 2025 20:01:51 +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; Fri, 28 Mar 2025 20:01:50 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v2 1/4] toolchain-scripts: Export meson settings for SDK builds Date: Fri, 28 Mar 2025 15:01:22 -0500 Message-ID: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: PH7P220CA0013.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:326::30) 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_|DU2PR04MB8741:EE_ X-MS-Office365-Filtering-Correlation-Id: b6f8ad99-cb80-4a09-8097-08dd6e336114 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|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: wDSzV2GTV5lXDJtgEJTeUyG/ac3vSx6rEAcoNFClaXeBouHFSok1BQYUbiCUOhsp4xp+SurWU0HQkXgUlVu0Xjem82hnTS652yfKqY7SUrlLSb3EtpKWjAI4SA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HMgweszm3lmiNMGdzYiljbzABb6Uz6KZFjS3eTlfOusmFAJComY5+jme43GpInhQQ4+Z4nf6ri4V9DIY2hZDfIZ94CKLCfg2hmr70zK6WGOSXRtkfy+++pzgjqkzebQKCD5yccQ6eFibV6Lnp4gQN/inEcF1Dt0b/vsQ0wSGgFbW1ortT6RsCcPlgTi1efybRlXY6CqDhBOV5iZmeL3aqJj5NiWWKP8Am4iN35knBEWT/4y2b4IMXoZG65IjxA= 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)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FhICCHzfTdRlwrXHSysB4a2qd32+6RQZoAwAfFs/ZMi6ZN1h7D3ZEPGSXhezlSZEmzXeMV3kKSEzZEHVXZqXqIxa9/xhOnHTEE/tOlepO9gSAz6hRRB3aRe9AZMLvLO+4uM5Pj/wh8ssQ3CDhVlQ8EHNBQ+YDwGiBxAi0UHZ/2kMbANmTsK+3i5ySrHNiDz57/Cw+pS8pweY+jhdhBKfsV39miGiNyWrQNxmmH2IZOYMaf2v1UFRohqozCYVIylSKDFVfM6DgFAU5E1L3ugOCb/aXBDFm6/AZCYK/oJUdCqhuUv8X9VbqbLNdabNKlcoYHsh4Y3Eyvx52MAGSU28zez8mKsdHtJqYwe8bhIr3bp+S+l7+G6XTHWNfNJu4wR5wR6z2AI5BWua+M9r9pIeLD/D7uNlpo4lbchvAkcwnPt7HtC0f/6uYL0kqE5SGfQekSllKTmZuouDasdQrHXRsel4GpbNs9kNUWQNNhJ+h0IgbUvaxMWr2LLbt5yYXM8LpIwowImWngxspkJUaIFm2wLpaWTjtrPb/pYMQXH6lNyDvN2EBzbW7vpC246nEZ8sFrFSlKFLo8Nk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08dd6e336114 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 20:01:50.8897 (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: zPrisMoAIBn2x4YZQ/LpueR0sfb53D0GA9oZ7Rf4O23xuCB3PEHMBs26YLyCuRc9gUDc+UUMwLgoIcb4OjSU+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8741 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 ; Fri, 28 Mar 2025 20:02:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213866 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..00593f681c 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_TARGET_MESON_HOST_SYSTEM="${@meson_operating_system('TARGET_OS', d)}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_CPU_FAMILY="${@meson_cpu_family('TARGET_ARCH', d)}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_CPU="${TARGET_ARCH}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_ENDIAN="${@meson_endian('TARGET', d)}"' >>$script echo 'unset command_not_found_handle' >> $script From patchwork Fri Mar 28 20:01:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60187 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 074B5C3600C for ; Fri, 28 Mar 2025 20:02:01 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.61]) by mx.groups.io with SMTP id smtpd.web11.3390.1743192114318143811 for ; Fri, 28 Mar 2025 13:01:56 -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=lVulUhWr; spf=pass (domain: oss.nxp.com, ip: 40.107.20.61, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jEn7tBaZa60J55NX0K4HZ44OjvV8Gss9zzB7mbaHo/Hdly4E+MhiYl7hGY0WOaXZo7Ksm52SDx1Htj9BxUus27gMIqrt+0CMnGvjLI6taZQU2nHWwRadBfvtzMpLh2VUDvL6MeVaPTR8OCEQhRaAzqFIp37GoOQx39qwvMWT8l0tl1WN/V5qNhmiufY7AU5FeB3DwfTWlSd/LHYZast3/FyFkR1mtxi9VkS+Hfr6k0SNpZvagOlqSvnOjhls7SyAf851stb+PxkxpZA6aqSeoyC3gNtbR41rChbsp/sHC89gN2SgHB3XVQewItzFNOeOF1JgukkbL04oUp7fQFcBbw== 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=G0s0AHzDYEB2sPIIbw3PRdo/bJcXQoZLfOviI+fMJN0=; b=TzTCL2fUe/8qN7mopyrBtnEArPsTngt76lH9bHIIbT1A7d4muLIGUHZziHZyYz1FZK4x8afL8t9Dqquj0z4vGpxCaBL6kAbeGYqkCYXZxjGeTjTHFyeorznHCa8xnYOJK+5nVkbI7swZv9FFD/MB9a0F934D5uIPzdwDrHVUKnp5XOnVySUVvppy5MVdy3Hcb9y8TR0ySDmXbpyFKOhjNw9a+s0hr1lpA55mrywDgSeKyKDbM7TL08R2sqyQFiaF3h7HE2D0vaKwnebx8pAAzXoBtN4ffotopF8fpRUNWnV6wOG4YwS+fNJgCDYFjVw+9K1qzBHcj9uW4uDvttwfUA== 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=G0s0AHzDYEB2sPIIbw3PRdo/bJcXQoZLfOviI+fMJN0=; b=lVulUhWrpih3OVnl0iDejZ1NSsbpjH2lHJrNucBAkL8hXl0EFfJuifW4gnrHbsVOi5vzlhja/WKx9TxiONF7CfOf0rU6P2to50TyH7EhX0/OYHk7aNcIP0hnERjQlrnDPod+elwlMazpuSaOcPrrDXsMi3bS8rHQXtSRjznNBeCLA3tEzIZbcH/g+1LYZ/mxzJpoOuoIjwDEyYld4rbFYY2HZ5cxP65hRDzcyRyRsKlOe0AbSFYyio7AOb+hKdTqqHqZiCIymFWO4VSjiR5vEHcTVplmftdAPuVXgQ2YV22KjBnJSyF4pPjVGE02nCiGCsVybzd06/vmIJMpqWBUQQ== 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 DU2PR04MB8741.eurprd04.prod.outlook.com (2603:10a6:10:2df::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.46; Fri, 28 Mar 2025 20:01:52 +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; Fri, 28 Mar 2025 20:01:52 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v2 2/4] toolchain-scripts: Add Meson settings for Yocto build SDK Date: Fri, 28 Mar 2025 15:01:23 -0500 Message-ID: <20250328200125.1051797-2-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> References: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: PH7P220CA0013.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:326::30) 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_|DU2PR04MB8741:EE_ X-MS-Office365-Filtering-Correlation-Id: 35d4ef0d-bc52-42a8-e5a2-08dd6e3361c7 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|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: Oc6k7qZbu1AdwzJbOnNqg4rjASIO5yymoQf6TZ11GrMWz934OGxe9S2Yq1hpHhIz5+K3U7MpM9yAQ7TlE0BjSPj7FjKNYjLggvueCFpszpF16q02wzPNPyOqJbdBs6syGfgYwSLrHCn/eRjbKZHXbb92TGmcyeLgRSywAml8kKsTUqqTINbOxGQ70sz7oqdocTOOpIeHvj0W6giNk3lPT3uLGrR5Rr5R2heEIYGeoVZAVPuokqMiogkbvnbLok4QrpLp+03QgF0D6uJjdnORmDpKAke0Jkc7LvnqJVXY4dz/Y2w4/+1Khgv47Nu0hv2IE4KG//HAt6++wLCXNEPr4UOLy3FU0oMscvoXW8nJgi39vuyg/hzGhJoph3Q4PQeimdFGvX40mQ8iVdHljbJ+dsug4Nw9HTKvy9MDp6V6hmuUrMzcc2Eke30FutKSwANjDOJS9Ld9JmmqNEQU9EtCFyUxcwtAtIjeQDXD1q1n0eeSLVbjMu49BlC3iY7UtIoVJkgXLAgrfCmmxfGK4F2z+VqHhwdrmD/gBEmmFpilRxzT4A12KQAMj2aP2WCucx7wiYeu2fOvWdesbzxn23p7SYaF3mVTPrPGtNFdOeIhkSoBzE2qZOnpzvj5JSTKF8blK+qp55zEy3R/lsvcSMmFGud/LMQdC2ZEtR5wEdpvo7HTr2yptcpec+T4D00yPQA3o+Ho+stYZ/F6A9uVe09lmtPFZCWZ0uRnMSXonaoqK6Kb4pS90aD6E7LZwez3vSvHym5U3Y/do9/NjUyF8C0q7wOBNXkNKP0b1S1BeaCEteQwQcQeUs6zVs3ohSqex+sE9e2WY3Ebn1X4XyjdbQxQvme7cj2pDU3zUnj1EekvTk9GQdEnfCbAxGwSD3Tk0iZeNu/MreFtSUb8zRZblGnor4muG7hgZHa+IssvrarQpRjkBieHYR6u2Ler/6BUsShNBOZLEFXLATXF86xH9PkSejXkOqTfwJqJEG2R5DmhXs3ltepdayTXhiWVc+Svkd7kWh89ySAxJe/0tfMoFlY2AQwNvdSAp+h7/nOGI3Y9MDWUD5jLhHndPkvL9Av6J8iB96jp0Si4+324zIdaA7WsFyzML8yJrtEMkzFQd0jyx2n/hEr3nCsrdjEV/vaY3bYVZugrEtMEOTxjoVGSBOiDfosjTNHrLSb5JCM5HZTI1YGoUJ5FfwexqZ1812W6D4uzTtUig55xU35OAmZ2sc5XyDtB8Y9DFJzul4KsHoepiP79Z0NyobY4gY2uzbgM3/i9AmuukDGtYV8KWLiOG9PhVyy9DEW5Ho9D5SwW1zhwtlJvnu2vo63ue/9nqOd2AWnVHM8Zaem6lpcmY3lDh3PVsAVeoXKqNLO5CWdYMoVfdE8/aWEbABCEB0NKTw7i9ArGl3WMpyC+T/2VZPHADWybDAf5sG7C/EDGALMTjjc7gjHl35FCex/i/FY7LedldjptelfnAKAzEN9xS4xsDvQrnA== 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)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OlCiA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QHJ9khcPhYwNjOkAW4PiY6dONreJ6v0ChFBvLW1Q8WZBlZsM22CcdqlafL72SFcyNhSzxZfNXkC3x2vKkY6MUvfDMY+VmDHQiuyYrTENDLcxh3ykV8qHwTsS7V9isK6m1eEZYD7UsTUEIQkJlGnpCAbN4NSnj6MtqiUOZajGRQ7FMsS82fxRKlLHNanuivzh5Kqa5ty2Ho4YLxo0SoZrUETqqAx4SjiEjBTKuQXpil4W2I/nBshG+lhZiL7lI8PW7j95sGM5vgbOGbuFCEyB43l1tlXoUEVzPVogVYT6KWOPHyfSx4llcTVp71lHG+TC62kxBnc6AVg9Vy0l1roYo/MOrPH/5VXAbywJDSgD5kWN89IcISChLw3KxqwE2AiKRionuGm4MMwcpR11DdfmaXaRCZ7oHJT/AnWbgCRkxWyXbFBthzYHPWCdDDYQ9Fq2MWm3AJjTncrB/QWoW0SXk2J5YKK0DJ9fAJWERwykUe6LpfeCvm3FP1L X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35d4ef0d-bc52-42a8-e5a2-08dd6e3361c7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 20:01:52.1912 (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: 77dOsrHP1dT8fTd+vFKUKzv+UNA3hX9Z/5LBdJW7Hk6t1O/Vu6i0V5T2qgTJBYby4b5l5OqLFKZdZNTynRo/ng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8741 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 ; Fri, 28 Mar 2025 20:02:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213867 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 00593f681c..5aaa021bab 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_TARGET_MESON_HOST_SYSTEM="${@meson_operating_system('TARGET_OS', d)}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_CPU_FAMILY="${@meson_cpu_family('TARGET_ARCH', d)}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_CPU="${TARGET_ARCH}"' >>$script + echo 'export OECORE_TARGET_MESON_HOST_ENDIAN="${@meson_endian('TARGET', d)}"' >>$script toolchain_shared_env_script From patchwork Fri Mar 28 20:01:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60188 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 0A515C36014 for ; Fri, 28 Mar 2025 20:02:01 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.61]) by mx.groups.io with SMTP id smtpd.web11.3390.1743192114318143811 for ; Fri, 28 Mar 2025 13:01:56 -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=ooLigbyV; spf=pass (domain: oss.nxp.com, ip: 40.107.20.61, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iA5tjYx5jqtTdYtxecQhxuzNt7qOF2HE6/wxnyXok00Cf6h2ru+Jknokc7MFiaWVo4NACHsBuAiK6bD2BreCQDxMw6ZiIomjAs/WqO/P76FyX6Py+9V/8K7rP/z2WOxIyM1xegk0U0iTIKTvmHYAs589H5duSf0IP0Uj+lpWF7MGyYdnWRWWkAUC4FlnP7HGLyc1rUEsl+OW9/p7whN3hnnReAK6+Fy+InUi5/wK07x7uol97Z5bdYwlayLeA5ud6YVmM/bYAmoLmoF4w3v+QyUDZhxFuyV+4dS01j0/yPcFaLfQh10eJnlSGugk4ZghP4Sm+CM3vusqYVAogbqY6g== 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=NXXaWQs3x0G4iwLoIDj9LRgAX5yk8i55GFw28Sp3168=; b=BCEGgNBkB3GJRuyGM2iuSRMEt9dmOUKgbrO6Md6HCV74rU/g0irsF1sjX93bIsm4Aw76iPMOrDX7LqvrAhmQYI2C6/VNRBf8IgBjRp218hbzsep935ECw4YF02S6ymnVM1lZSCEcQlHVd4KKJm1+MnpBWCaIxskbHm55fU3wRcVRnXXlkrskZWos6UNTRZNgUapIljL6BZ0HuWlNU5FHxYqPgHjQy723vLn7mAMjhkOcFC0knV7RLWOapb5a3uP6MrxEH1UaPpQzj17fnsRjhnfQs5zI1F5SDgPnIdNsXF3Vohu4xE5rYgANANP2w5o4KgNLMCjc10fCIyq0ll2ZAw== 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=NXXaWQs3x0G4iwLoIDj9LRgAX5yk8i55GFw28Sp3168=; b=ooLigbyVSXyj9tOEkid8kAF7GClfCrDw1wchhkmkWb9oMzF72H407KBZVlKy6sJ0iX0lsfUJIiTB+gcFskkGxKPogdT4FZpvZIis2in+D0Mpau1QC76GoKmwUFsfLIY8uqyitdW1f1F4LG4OaNcoOzVhsu0Oy7fgh/hmwateAZV3NW2MjQjyyXgCs2e8EVMuHdSCU/qYot9OxoqUwjcIQhE4JtoHbafOLmVtqSjEVi12ViA1U3LiBMSeekCgkmVcoguTbtYcKHvpU0/AhW8Fb1+MmifeKnNOqDwwZgUAnK3zOMBj8Dr4jPm3wHZwIUQBWnuIOdK4Df8nTCbD/rv2Cg== 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 DU2PR04MB8741.eurprd04.prod.outlook.com (2603:10a6:10:2df::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.46; Fri, 28 Mar 2025 20:01:53 +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; Fri, 28 Mar 2025 20:01:53 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v2 3/4] meson: Fix host_machine setting for native cross-file Date: Fri, 28 Mar 2025 15:01:24 -0500 Message-ID: <20250328200125.1051797-3-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> References: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: PH7P220CA0013.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:326::30) 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_|DU2PR04MB8741:EE_ X-MS-Office365-Filtering-Correlation-Id: edbea10a-4723-44f2-32ba-08dd6e33627c 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|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: rAIELwti0u53Y8PEaPtAemtUZNLlpqllKpzfoiftFpK2+o3sugCyC3rjQ4d+IxyH57UwNeJ8OrW9UQvdCYp/IaQ3Yep+ukN3lSz0UC2KnuutRj+rdu7++uFx38bgqYVcPFaxP3Y4NU8x05l2uFGMmT3tm6BukYc2WDuUimU/rqtuWjNWKgibBwW7VYztyyg3p5CvGidrNVPsDhl28IRLVeS1t+XSHTHdczOgF3wYn5c41NVAQY5jpDFO065XazXHhClIDPhgxR8z6zYuMK4T/K6ok5s0PeXCKvwwkCKWCns/UAArV20WydyLQYvcslVzG1A1kg1uJPFIJ6ft3r83zNK/w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jZP3iaN6K6bj2y6RmRU= 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)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MPi9tQd7Yd3f3zVJKxmPdLJps4syQwbjL4Dk09NcAdlHpWal2fz6cAJnuigNZSnCNpy+6UtAVpDecHCVBUi4yVc6VNj6D6TsD6Kc+dNvyIpgbl5zbdWER3VXhr3XYdPkWAmgA+nrE3XQCqO9Vrk/1yjrBDfCoRwY515quA4zVa0pGUaodRk180RxeI4rkihboLYZacIKMeyK6AsgqdlYJGO3KnkSbWMLTHEMaSsAMdxb2Dxdk+MTnflyETIV2qINhhvUNCVkopjmEqrd9F0soedapDXNdgFwkfgT/kTN9dt2WOpCdd4P4cTtYO2K62cHAOpy8XGRTHO5JxH8wpw+Q2Rq8/l6/QmlqAefRd7A2r343I9NP6a8E/uAaSLWJqkZnsu7HWyOdDjN0uI2YqNbGgIBBYF/OTX/Gh/kepinCdbGKasDOOVu9wq6A6PZ4c2TraSxIcP3Ex+yaK9XhRcYKCGFz5oWMLBF3tTekQPKrK3dHDhmJeiz/1SsfBZLsS/v/oh2zGMsWZJZflTXYurrWqm3cRld+JvaudKNLR6UYH0hJPrgGq4IMz7p8Hj5q3eGGayQwcry+JwxVxl0E2A87TOTjOzJ/NmiW1gaoSyQLRU3wWFW6AnMKuPFYeWh1qxypAGLsIMuqDUzZ1eYRq/SvtLvTHSpoWclxC5cxPlsp7dskaMkY0lMGLJGwlueSsihYAZzszFW1VSB0OYzQMBVcw3guQSmGWIPYGav/PXf4SlNcDLxvkLM9zlA/vL7Dk2MGagTxyh+UDmhsDyMftusrZyGs/hoXjVMHqsmW99OUgtvxLil+je+sCrB4Dedpb2yMiUQzmGR3X7UVvaiLpXHgES1ycxiJtp9cYM6RHbQpwmNAL14vYbmp0Wej8tKQofWdvnC6f316fr/EE29neSh8fqk8npcfkJAOuzZ+m1wrkdJ9s+e0ZNQZ57P3MfnldO/141BYXB3IgKHCbrmvn3k/atWn7gxZ7e3td9y006igz4xP9/mPDJZd+Uov29TY1eVWbB5cIHXg0Ay4wSLRSfskFjqXq7h2rudZS+HxaH75H2z+NQMfJnpPtnyizHQyUYT7zLfPmvxxJTgCsahg1Cl3YZQoLSBzf0CM7aGXtbBmqu29auOe+GRZ3t0sxrrc69qvkJ+d5Zy5O2++gEC31vEh1sDQyEqlUPh1uWASXcuVTbN4QB6Yhu8sUu2CCUfNhXL5cgKMzped0nn/hSqgKJdvGptFvxyWTUe8VYzjlP9nUWKNka1ENKniGMXTHbRYgRG+eOQOpc/tGUMrxdLAujD1ZqF+r+QdYaTUk64wOaPp7ClagOIA9T9j2uB9/UHILDnrUoON6fN3O5iH1do6VWWxC9vlrDAFVh1UB6KSl6NReqQLrZD+jbKmdd1bemhm8GAX9uPtRnXRKK3w3hXdv6PqgXkr3yK61ZGEO/BOxPXPl2u0tbUGfgdYDx5ND52FaDyFNBA6x5ccpIxkkMh8ygBNN1TzIG9BdYeMmHwqrMgqIWl/5NSLyZZb88aDh8cqqWWG40SZG1q3Y3sKqDYbwNqZNpNhtcGuAyLIv8zMPU04kMER+mjIaZahGIltPOjnILp X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: edbea10a-4723-44f2-32ba-08dd6e33627c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 20:01:53.2530 (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: 6ke4LqR60CydDHBxQLzwMSx1QSTok6ZPtmeK437sK9o2ujQbawYXNAbsjuCP6/QUw5ZWIIIV5KhnCYXTWvl1FA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8741 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 ; Fri, 28 Mar 2025 20:02:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213868 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..1017298509 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_TARGET_MESON_HOST_SYSTEM +cpu_family = @OECORE_TARGET_MESON_HOST_CPU_FAMILY +cpu = @OECORE_TARGET_MESON_HOST_CPU +endian = @OECORE_TARGET_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 Fri Mar 28 20:01:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Hochstein X-Patchwork-Id: 60185 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 168B3C36013 for ; Fri, 28 Mar 2025 20:02:01 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.61]) by mx.groups.io with SMTP id smtpd.web11.3390.1743192114318143811 for ; Fri, 28 Mar 2025 13:01:57 -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=ErnFAH9y; spf=pass (domain: oss.nxp.com, ip: 40.107.20.61, mailfrom: tom.hochstein@oss.nxp.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RS/j8n/klK5wUKdi2t+8u+xNBNjd1931lcYWSEKTu87SyfuZ0+bnuQiiWZFfvk79gwInUdSXjHcie66oJPS5GGMnGwdYqngtHUgqSlimT/kEe5nmzVmSF64VXYW7l91HBn2VHkXdWWe9tH5tU4xrl1uYCLXXczbNdIkq2moyttQwnb7MLHUgtQZqyu3Gymcop+iaagw2wIfgEbuuvSLFefNxQGyZiYWiP+OnSQFhQc6xouYKS5MLxoP3M1X+oNAHcz0pDjJGgxpA+0chs5yowCHEpBoqOxGTo3nrBiwGD8qQe97LcBw+0gOEFFb4bbpI6Vj0WUcl9X859zQcvOMbeQ== 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=i/o8bKuMeLqLOKSsNU4tBa+1kB3VRu5NInrfb0euqmek/91u3o9KpY3octAMYhWjQe9ylw4X6Vhmg5W3eAoy69UgXXhtiO8W116SAqWA+UUS3NAUdYzPnsI05F4YpVfJs854ev+NQedlvT4hxpGaIMBacB9iC91XAmyp0jZPpf5NpLI42Q6MJQO80q3JaXHs/HoqSt4g/MKzk4d4u9jJBf2kYh7uwi4NivRPHZ2GqS5znTnjNZmYaECl1Xsm0SqEtjjexCXNs8v6MupYiGa4Q2xekJePOocGVBm/wJqcEDSuioDccZpAHA8n/sI0uWb/YCqRkTtGYDyGMw3g/QJTsw== 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=ErnFAH9ysLC/0Hv3OBY7/4kPihbPqQW0hylOBteRB9IQOfdU7z79kgFKTUEJnEKs9mqVlo13eU3GR4rwwak/orhbOooam/3adrtsaOzVJAl5cOGWNowqtIHVtAyQhf1xLFaIBuaSWJLXdGZvXEwFebXfrD43E6wv27c9d5gYNl/4CB9+gn9x9sdT0ept9zMDgnA/iNrngac115LufCp/JCL/PVI7OqdLs4f6PWLjhlG6PKzok8ptgRqqhCSJ32pjgVUiBs9qEwiht16R8Bw/XzlBpyTnDAqbtJJRPP5NCK+K+q0KsuM1w8kRBsk4/YRFo2wuXRGmfKs+6iPQnqdmtA== 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 DU2PR04MB8741.eurprd04.prod.outlook.com (2603:10a6:10:2df::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.46; Fri, 28 Mar 2025 20:01:54 +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; Fri, 28 Mar 2025 20:01:54 +0000 From: Tom Hochstein To: openembedded-core@lists.openembedded.org CC: Tom Hochstein Subject: [PATCH v2 4/4] meson: Allow user to override setup command options Date: Fri, 28 Mar 2025 15:01:25 -0500 Message-ID: <20250328200125.1051797-4-tom.hochstein@oss.nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> References: <20250328200125.1051797-1-tom.hochstein@oss.nxp.com> X-ClientProxiedBy: PH7P220CA0013.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:326::30) 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_|DU2PR04MB8741:EE_ X-MS-Office365-Filtering-Correlation-Id: fc132c25-9ce1-4591-5c9d-08dd6e33631f X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: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MvlccWi1EcyDRwNG0lbKPzLw8dDDqw2gy5zDP5ZMB2Q/w/RvF90Krnaoo+OnnFBZRuZeJUeXF/+R73xBu4hTRbNrT2RWBPIgQ9sYL22TjY93vyzxAyFExBE5lRibmqThdfylDa37iDQx/bVRkbMXdP756RHiNSJ+Q99t8HuQouCJWxBnIeG6coqj7xKpuiTL98qPJmKT3CRQwxFeC3JnhSPkZaIocrncKkoVypvJgN3V3XKZ165RRBjSgC6s/jmy/e+H3mxmBzbX4T4O+0+mwDLM0DMhMvZfPITu2joJdnaAQeRPNpiEyD/8V/p/9P6kq5OYbYyzOXv3zR6ZpQzJYxFJ7qlbmbJZnk34z58Gx1dErhq42jCpeL52KvBWC/tHQhqlwj0tW7jbp8+7d07jw+ktKVJ5Yt8xKcew3XoOPVyD0V8HAWsJ05FxfTwQitp5Wl8tT6QI6GM2N5stBHPb5oi/esmFGVYi+WYbaT0LTw+xvnWvOyw== 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)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BT7Ly1Ktaof3pt3J+DREpToqtjJHSOyfTHY1v2QzEJZNe2O9JUydQRfCV9ZFwTBco2XZ+Lk64bo1/uP19rvaeffc/zPE32DHZvNRGkCtQDcHD5jt7FIxlUP1e2hMz2w0chzmafEuz70/jRQptqPyDzgSyTw5g82HnOa11gQhMnH49SeC37BvUUbW92Wa3RZ8oQ+QKAk1Su9MRJSi6lGYTz0j9W+L3xPkc3ZIJacaKmpLP6Qb3r591YOw9J3cEW+8MEdo1Q+FNVi7sQnTtgiTYq9ASAaag+JgdoKiih36/4ZM7M/m8COc9xDqu7ELLhDRAYYaKMVrsolTk566pOnoG4xsujdFv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BFidD2lsUHF9EECsZ2i6N7emphgLCfeo/QPb6OMiD+t4VivgZv/dJ2S13EfqlMo+CTKDf15GVjAh9v6wsL9h5bFVXGjCJVFXliJgG274Ps9CIMW5SMJRrY9/LTE+HkaG7vCrX1DaL2lL8Q5+ru5en4Sg+9aCIk5/nADTgVb X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc132c25-9ce1-4591-5c9d-08dd6e33631f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2025 20:01:54.3485 (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: WLSFoS5y6G6/Spc4henyPuhHEqTMcPWJcV7mM9yQTuvaJKiA4n+OHW6pL7LRZaRX9d0gebUVNmvOW4wSzfko0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8741 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 ; Fri, 28 Mar 2025 20:02:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/213869 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 \ + "$@"