]> code.ossystems Code Review - openembedded-core.git/commitdiff
layer.conf: Whitelist lttng-tools->lttng-modules dependency
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 May 2019 16:51:53 +0000 (17:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 May 2019 16:06:28 +0000 (17:06 +0100)
The API between lttng-tools and lttng-modules is safe, whitelist it as
the dependency fixes tools failures. This needs a hack in the multilib
class as right now there is no way to know if a given recipe is a kernel
module or not. This needs to be revisited.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib_global.bbclass
meta/conf/layer.conf

index 649cc096b76a2dbbbb2cea4f7363d1ccb7fe1b06..19ce1a50915981d0e8aaa64108505590bf9c0897 100644 (file)
@@ -118,6 +118,9 @@ def preferred_ml_updates(d):
             d.renameVar(prov, provexp)
 
     def translate_provide(prefix, prov):
+        # Really need to know if kernel modules class is inherited somehow
+        if prov == "lttng-modules":
+            return prov
         if not prov.startswith("virtual/"):
             return prefix + "-" + prov
         if prov == "virtual/kernel":
index 6590e80700a2bfe01b3943ac6650485b65265c1c..5ecb93651e50da38361844762b90219222c28d11 100644 (file)
@@ -77,6 +77,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   weston-init->weston \
   weston-init->kbd \
   connman->xl2tpd \
+  lttng-tools->lttng-modules \
 "
 
 # Avoid adding bison-native to the sysroot without a specific