| Message ID | 20261204055922.187137-1-joerg.vehlow@emlix.com |
|---|---|
| State | New |
| Headers | show |
| Series | [v2] staging: enable special handling of initial-recipes also for native | expand |
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)
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 <joerg.vehlow@emlix.com> --- meta/classes-global/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)