]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/oe/utils: move INHIBIT_DEFAULT_DEPS from make_arch_independent() to allarch.bbclass
authorRoss Burton <ross.burton@arm.com>
Wed, 8 Jul 2026 16:10:09 +0000 (17:10 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Jul 2026 17:02:30 +0000 (18:02 +0100)
The bulk of the work in allarch recipes happens in handlers because the
finer details of how the recipe is configured varies. Specifically,
multilib recipes cannot be allarch and if multilib is enabled, the
packages are still tune-specific.

However, this means that recipes that are marked as allarch don't have
INHIBIT_DEFAULT_DEPS set in multilib environments, which is a problem
if it was being used to avoid dependency cycles.

Instead of assigning it at runtime if the recipe really does become
arch-independent, move the assignment from make_arch_independent() to
allarch.bbclass (the other caller in dummy-sdk-package.inc already sets
this). This means that recipes inheriting allarch always have
INHIBIT_DEFAULT_DEPS set.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/allarch.bbclass
meta/lib/oe/utils.py

index 7cdaa63ae2c68c7b99382992f8adb57e106a3150..aa44e2bc61323613ad5beefb97f5f0cadcf4fb34 100644 (file)
@@ -8,6 +8,9 @@
 # This class is used for architecture independent recipes/data files (usually scripts)
 #
 
+# No need for virtual/libc or a cross compiler
+INHIBIT_DEFAULT_DEPS = "1"
+
 python allarch_package_arch_handler () {
     if bb.data.inherits_class("native", d) or bb.data.inherits_class("nativesdk", d) \
         or bb.data.inherits_class("crosssdk", d):
index 558073d3b10824312a48558f50888be75e368b1e..082f6cef74f52ef8b0f20de2ac35c636a674b95c 100644 (file)
@@ -515,9 +515,6 @@ def touch(filename):
 # Used by allarch recipes and other cases where arch independence is needed
 #
 def make_arch_independent(d):
-    # No need for virtual/libc or a cross compiler
-    d.setVar("INHIBIT_DEFAULT_DEPS","1")
-
     # Set these to a common set of values, we shouldn't be using them other that for WORKDIR directory
     # naming anyway
     d.setVar("baselib", "lib")