From patchwork Fri Dec 4 05:59:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Vehlow X-Patchwork-Id: 107246 Received: from mx1.emlix.com (mx1.emlix.com [178.63.209.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2033.1796363969665193910 for ; Thu, 03 Dec 2026 21:59:30 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@emlix.com header.s=20250930 header.b=L2sxtT4W; spf=pass (domain: emlix.com, ip: 178.63.209.131, mailfrom: joerg.vehlow@emlix.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emlix.com; s=20250930; t=1796363967; bh=FrQYQnh71/aYUtuPx/Jl/vUAgJSb0GlKI3O53OSjkh4=; h=From:To:Cc:Subject:Date:From; b=L2sxtT4WJ0KO4thD6G2AHq8Zyn2RrBq0rWV1x9DWY3yV7O+4zxrHlp2KEySbOhDz0 AM0YVndEh93ux3z9S1fACjXqWPP1XHl7LW0GjLD+9G8tDV70khAcTAk6pAE4v4ovQX 1UGsKch3ZFCoVHWNq1kV8QYQI1lojk32rvHTRycXtDQh+U9QJDVCKAJZCx+sWAN9Uk fVoDJ6mEspVwdmyseN2uQsduh5sWiiABjwsr5fG1Kv1GIWhy2dVMSAx5peOoWH2KbJ aqmzwODPdwqbe3rija/kuwHzq7IYv1tr2zKviChsZ1E2M1uIY8JBIfDyaZRgEYMblQ epf4/Z1uzkuig== Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 3F5275F847 for ; Fri, 04 Dec 2026 06:59:27 +0100 (CET) From: Joerg Vehlow To: openembedded-core@lists.openembedded.org Cc: Joerg Vehlow Subject: [PATCH v2] staging: enable special handling of initial-recipes also for native Date: Fri, 4 Dec 2026 06:59:22 +0100 Message-ID: <20261204055922.187137-1-joerg.vehlow@emlix.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.4.6 at mx1.emlix.com X-Virus-Status: Clean List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 05:59:37 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251919 The initial recipes (like libgcc-initial are used for bootstrapping. These recipes are only used as a build dependency to build a final variant, that it then installed on the target. In extend_recipe_sysroot recipes ending in "-initial" are excluded, that matches target recipes and nativesdk recipes, but not native recipes, because they end in "-initial-native". There are some other locations where initial recipes are handled differnetly, but they usually check if "-initial" is part of the filename. This change fixes the inconsistency in extend_recipe_sysroot by also handling -initial-native recipes the same way as -initial recipes. Without this fix natvie bootstrap recipes that use the same install paths as the non-initial variant to be installed without collissions. One example for such a tool is gprbuild, which requires itself to build, but also has a way to bootstrap itself. Signed-off-by: Joerg Vehlow --- meta/classes-global/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-global/staging.bbclass b/meta/classes-global/staging.bbclass index 20340a16e1..69b213c66c 100644 --- a/meta/classes-global/staging.bbclass +++ b/meta/classes-global/staging.bbclass @@ -453,7 +453,7 @@ python extend_recipe_sysroot() { installed = [] for dep in configuredeps: c = setscenedeps[dep][0] - if mytaskname in ["do_sdk_depends", "do_populate_sdk_ext"] and c.endswith("-initial"): + if mytaskname in ["do_sdk_depends", "do_populate_sdk_ext"] and c.endswith(("-initial", "-initial-native")): bb.note("Skipping initial setscene dependency %s for installation into the sysroot" % c) continue installed.append(c)