From patchwork Thu Nov 13 14:01:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 74448 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 71780CD6E63 for ; Thu, 13 Nov 2025 14:01:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24435.1763042503769430097 for ; Thu, 13 Nov 2025 06:01:44 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4405B12FC for ; Thu, 13 Nov 2025 06:01:35 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 697CB3F5A1 for ; Thu, 13 Nov 2025 06:01:42 -0800 (PST) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 1/3] arm/hafnium: split configure/compile and call ninja directly Date: Thu, 13 Nov 2025 14:01:36 +0000 Message-ID: <20251113140138.3224976-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Nov 2025 14:01:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6767 Split configure/compile and invoke ninja directly so that we can control parallelisation. Signed-off-by: Ross Burton --- meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb index 70ad6b1611..60024553eb 100644 --- a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb @@ -40,11 +40,15 @@ EXTRA_OEMAKE += "PLATFORM=${HAFNIUM_PLATFORM}" # Don't use prebuilt binaries for gn and ninja EXTRA_OEMAKE += "GN=${STAGING_BINDIR_NATIVE}/gn NINJA=${STAGING_BINDIR_NATIVE}/ninja" +do_configure() { + oe_runmake -C ${S} ${B}/build.ninja +} do_configure[cleandirs] += "${B}" do_compile() { - oe_runmake -C ${S} + ninja -v ${PARALLEL_MAKE} } +do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+" do_install() { cd ${B}/${HAFNIUM_PLATFORM}_clang From patchwork Thu Nov 13 14:01:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 74450 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 74991CD6E6D for ; Thu, 13 Nov 2025 14:01:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24436.1763042504402580666 for ; Thu, 13 Nov 2025 06:01:44 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43A731477 for ; Thu, 13 Nov 2025 06:01:36 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1B5923F5A1 for ; Thu, 13 Nov 2025 06:01:42 -0800 (PST) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 2/3] arm/hafnium: ensure prebuilt binaries can't be used Date: Thu, 13 Nov 2025 14:01:37 +0000 Message-ID: <20251113140138.3224976-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113140138.3224976-1-ross.burton@arm.com> References: <20251113140138.3224976-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Nov 2025 14:01:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6768 We depend on native tools to provide these binaries, so we can delete them to ensure that our tools are always used and never the prebuilt. Signed-off-by: Ross Burton --- meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb index 60024553eb..72b7801073 100644 --- a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb @@ -40,6 +40,13 @@ EXTRA_OEMAKE += "PLATFORM=${HAFNIUM_PLATFORM}" # Don't use prebuilt binaries for gn and ninja EXTRA_OEMAKE += "GN=${STAGING_BINDIR_NATIVE}/gn NINJA=${STAGING_BINDIR_NATIVE}/ninja" +prune_prebuilts() { + for dir in dtc gn ninja qemu; do + rm -rf ${S}/prebuilts/*/$dir + done +} +do_unpack[postfuncs] += "prune_prebuilts" + do_configure() { oe_runmake -C ${S} ${B}/build.ninja } From patchwork Thu Nov 13 14:01:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 74449 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 6DCFCCD6E6A for ; Thu, 13 Nov 2025 14:01:49 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.24437.1763042505006153949 for ; Thu, 13 Nov 2025 06:01:45 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 06B1912FC for ; Thu, 13 Nov 2025 06:01:37 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 243BE3F5A1 for ; Thu, 13 Nov 2025 06:01:44 -0800 (PST) From: Ross Burton To: meta-arm@lists.yoctoproject.org Subject: [PATCH 3/3] arm/hafnium: build just the root target, not the tests Date: Thu, 13 Nov 2025 14:01:38 +0000 Message-ID: <20251113140138.3224976-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251113140138.3224976-1-ross.burton@arm.com> References: <20251113140138.3224976-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 13 Nov 2025 14:01:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6769 We don't run or package the tests, so there's no point to building them. Signed-off-by: Ross Burton --- meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb index 72b7801073..d62ea363db 100644 --- a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb @@ -53,7 +53,7 @@ do_configure() { do_configure[cleandirs] += "${B}" do_compile() { - ninja -v ${PARALLEL_MAKE} + ninja -v ${PARALLEL_MAKE} root } do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"