]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/create-spdx: Collect all task dependencies
authorJoshua Watt <JPEWhacker@gmail.com>
Wed, 1 Sep 2021 13:44:54 +0000 (08:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Sep 2021 08:03:36 +0000 (09:03 +0100)
Stop filtering the runtime dependencies based on do_create_sdpx (makes
it only pick up things in DEPENDS) and instead include all task
dependencies that are not the current PN. This allows other dependency
methods to be picked up correctly, for example the dependency on the
kernel used by kernel modules.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass

index f72b7b762e1eb89f032cc63d55f517b9ee2078e5..db1d1756c971cd5569ca70f786cae5e7fbbb2c24 100644 (file)
@@ -528,8 +528,7 @@ def collect_package_providers(d):
 
     taskdepdata = d.getVar("BB_TASKDEPDATA", False)
     deps = sorted(set(
-        dep[0] for dep in taskdepdata.values() if
-            dep[1] == "do_create_spdx" and dep[0] != d.getVar("PN")
+        dep[0] for dep in taskdepdata.values() if dep[0] != d.getVar("PN")
     ))
     deps.append(d.getVar("PN"))