From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 26 Aug 2025 21:41:03 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uqzXU-004pS7-0C for lore@lore.pengutronix.de; Tue, 26 Aug 2025 21:41:03 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uqzXT-000458-8i; Tue, 26 Aug 2025 21:41:03 +0200 Received: from mail-am7eur03on2111.outbound.protection.outlook.com ([40.107.105.111] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uqzXC-00044c-GA for ptxdist@pengutronix.de; Tue, 26 Aug 2025 21:40:47 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=riZhlrOCZcEiPnaZXlODDH3dKk00n5+1XcQ0GJaqb10NG407vqpEfqgwkKc+tXpjbVT+lof36Z/C9etmMwBTQTI8tHbqlJVeAthw94CvViAGGQaz5B8hW4Zvjbnq+vXGEsGfqj+yMx8G+r4wGwnbCcY5A8Zi3ur0DuYQTDcAO106k4wz6HDBD8fnZeR6R78KFQAVybKuI89WZ+TIFok3S2NZSzVLnZieXysO7gpzL3vaIIOmeoTIn8/9OvuoQ0kmfM5HNyTZdp49qvspraPaciDakwi4y3NennS7u2VqnNA2zKS2cX4LCCks9bOYDCVlFWT0TTT0u9xS/x/OTBCaLA== 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=0Wh/AqFfcvwmDhS2VklPAbJhdGvHWd2LsJWcaNDvFks=; b=Hj1OQwbGyL+wTL8YGVeCWs0JzDYU6cx7A+hWOhZnf5pBSo0jXlekXwzWrAL5dVKy1WkrxftZMd3n5hdRDaF2c9TbXQn0DXpohqEW9YYSaxf3OMGb6l9UZDgiG3aOG8dfwImaLOt4O79Vi4y35BI9woMfRNdjTEI7uzq2J0RCt2T9/yAvDm/7aaIPWQusnexlNg19ruQaaR1f6N8liEu73S72dvrhjcJVR8WwfCf73WzqksZ6UBJkSL5A8DsCe5L1RC81EyiT3S7UljDy5oPpzDX/jBXD1YhfP9kwrhrvjBANDWmMjMt/s1sj6r4VZaLbEGr80eJw2mzqyNkt5QVNfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0Wh/AqFfcvwmDhS2VklPAbJhdGvHWd2LsJWcaNDvFks=; b=JXbotFFJS2nKegogql3UcCb5dgWoG9CyPg113tsInNuZBnhykp9XKrUEd/zr07owH5/TMYzHxRB+aLbuGFe52+5kNk3IY4I77wcZhBJWr/aNeSpJtkmvGKtiw4DZroSAkH+si/HeOZDs8tFA8+TT25dwpeQ+3WH19QQoHAcjo5Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) by AS4P251MB0611.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:4be::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9052.21; Tue, 26 Aug 2025 19:40:44 +0000 Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::a4b2:58d7:8549:4b19]) by DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::a4b2:58d7:8549:4b19%6]) with mapi id 15.20.9052.014; Tue, 26 Aug 2025 19:40:44 +0000 Message-ID: <41f09f9f-6e6b-4132-9932-e86965db1a62@t2data.com> Date: Tue, 26 Aug 2025 21:39:34 +0200 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Jon Bird References: From: Christian Melki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: GV2PEPF00007572.SWEP280.PROD.OUTLOOK.COM (2603:10a6:158:401::3eb) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9P251MB0618:EE_|AS4P251MB0611:EE_ X-MS-Office365-Filtering-Correlation-Id: ee410ff9-6691-4fdf-f51b-08dde4d8725e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?T2h1eTZxSDhOZER1cUVWZXhHRU9Rb0djaWo4UlYwby9EemJIR0w2bmU5YkZv?= =?utf-8?B?SkFQZ2s1ZjIvNjlaejRiWVJWd0JSOVdEQ2JRckdKQ0lRU3lsSFRaVzFTUXlz?= =?utf-8?B?SitLUlZuK0dHdFZoaERIQUUzWG5MZ0ZMeXU5VlgrVFUzczJ4S0U0WlRscnpy?= =?utf-8?B?Nzh1dXZjbVMxZmhPN0hFMldadTFDRisvUnRkRTJkcVBDc1FMd3RVcDIwdUtz?= =?utf-8?B?Q3RDU2ZtMnJPNVp5VEp2dDhJa2MwdE9aMzI4Nm9mbl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LY1dYVWhHTVBWWmlJWmt0bjRFbFl6cHA1ZTkrZUgyWExSbVRHV1dta3Iv?= =?utf-8?B?M1pEbzZSa3JsS2NDR1cyUHhRMWJhUGhqeUFwMmlPY3E2L1hHQnpwMDhWaG5m?= =?utf-8?B?QWdidnFKbjc1NHZEUm1kSDR6QW9BU0t1MVJIeXowSitlNDh0RS9hSmxnUDNR?= =?utf-8?B?ZXFrZUd5K1RkaDE2bHBrZDlBam9zZ0xPVnE4ZjlyWDZQMXZhQzdrUzcrN3M2?= =?utf-8?B?SDNZN0poMVIvZGUwWnBEL2VTUmhmVmQ5UTFvOWV6RGU0eDRITldDL2FRaG5E?= =?utf-8?B?eVhma01DaWdHcUh0YW50Uy9QVTFIMkl4bHBaL0dadU5vU3NUSTc0Wk56NFly?= =?utf-8?B?NEQxcGYyUWJtK0h2Z0pOSU1pYkJwV2pQN3YrZXdKT1FhTWZsa0ZnZGJHNVBi?= =?utf-8?B?S01pMFl1clpDcUJKZVQ5SUpONk9PcDNCbnVGK2FmOGZKUWFPVFNVRDd2TDVt?= =?utf-8?B?aEE9PQ==?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee410ff9-6691-4fdf-f51b-08dde4d8725e X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2025 19:40:44.1505 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UFV17jZTkeRSSJrXOhzhxx1phJDxrkK25lF+iJ91Ru6NQs9UyfiR4wV6pbo/g5MrxzXBr1VT1h2gxjxyuQJ/gu7LXydLcub3bTL+9vmggbo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P251MB0611 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] Building the kernel with a different toolchain X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de, christian.melki@t2data.com Cc: "ptxdist@pengutronix.de" Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Hello Jon. Under platformconfig -> architecture -> toolchain you have: (${PTXCONF_GNU_TARGET}-) compiler prefix (${PTXCONF_COMPILER_PREFIX}) compiler prefix (kernel) (${PTXCONF_COMPILER_PREFIX}) compiler prefix (bootloader) Ptxdist allows you to set different compiler prefixes. Normally this is just the gnu target prefix for all of the build bits. You'll also need the softlink to the toolchain. Much like the normal toolchain softlink. lrwxrwxrwx 1 christianm christianm 82 aug 18 12:14 selected_toolchain -> /home/christianm/ptxdist/bin/../x-tools/x86_64-secplatform-linux-gnu/bin lrwxrwxrwx 1 christianm christianm 82 aug 18 12:14 selected_toolchain_kernel -> /home/christianm/ptxdist/bin/../x-tools/x86_64-secplatform-linux-gnu/bin But I don't understand why the need to split the builds would arise. You're bulding a 32-bit x86 userspace for all ptxdist cares. The kernel is just a blob. Some issues might arise from building x86 on x86, build env leaks tend to go less noticed and sometime produce more obscure errors. The build is against the libc and headers. Your kernel won't care much. It will run on x86_64 and needs to have ia32 emulation support if you need pure 32-bit binaries. Ptxdist can build that just fine. You will need a cross toolchain with a ia32 libc and all userspace binaries will need to target the same. I usually use crosstool-ng to produce such odd or specific target toolchains. I have not tried to produce a toolchain that targets 32-bit x86 in a while. Hope this helps somewhat. Christian On 8/26/25 6:11 PM, Jon Bird via ptxdist wrote: > Hello, > >   > > I’m looking for some ideas on how to sensibly go about setting up a > PTXdist project that requires the kernel to be build using a different > toolchain. Specifically, the userland component needs to be 32-bit x86 > running on a 64-bit kernel. I can achieve this via a roundabout route of > building the kernel outside of PTXdist completely, then having a > dedicated package which copies across the modules onto the rootfs. As an > approach that’s fine & is probably the path of least resistance however > ideally, I’d like to then prevent PTXdist from building the kernel > itself (currently does it for 32-bit) because that’s just a bit > pointless. Initially tried just de-selecting the Linux kernel from the > platformconfig menu however that throws an error immediately: > >   > > ptxdist: error: ptxdist-2022.11.0/rules/pre/kernel.make: > PTXCONF_KERNEL_VERSION is undefined or empty > > ptxdist: error: ptxdist-2022.11.0/rules/kernel-checks.make: > PTXCONF_KERNEL_VERSION is empty > > ptxdist: error: ptxdist-2022.11.0/rules/kernel-checks.make: please run > ptxdist platformconfig and activate the kernel > >   > > The other option of course is whether there is any means of specifying a > different toolchain for the kernel build, I note there is a “compiler > prefix (kernel)” option in the platformconfig but that just yields the > first part of the compiler executable, rather than a complete path to > where the 64-bit toolchain lives. > >   > > Thanks, > >   > > Jon. > > This message and/or attachments may include information subject to > General Dynamics Corporate and General Dynamics Mission Systems Security > and/or IT policies and is intended to be accessed only by authorized > recipients. Use, storage and transmission are governed by General > Dynamics and its policies. Contractual restrictions apply to third > parties. Recipients should refer to the applicable policies or contract > to determine proper handling. Unauthorized review, use, disclosure or > distribution is prohibited. If you are not an intended recipient, please > contact the sender and destroy all copies of the original message. >