summaryrefslogtreecommitdiffstats
path: root/meta/classes/spdx-common.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/spdx-common.bbclass')
-rw-r--r--meta/classes/spdx-common.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/spdx-common.bbclass b/meta/classes/spdx-common.bbclass
index cd9cc0db98..ad02da5cd6 100644
--- a/meta/classes/spdx-common.bbclass
+++ b/meta/classes/spdx-common.bbclass
@@ -39,6 +39,27 @@ SPDX_CUSTOM_ANNOTATION_VARS ??= ""
39 39
40SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" 40SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}"
41 41
42def create_spdx_source_deps(d):
43 import oe.spdx_common
44
45 deps = []
46 if d.getVar("SPDX_INCLUDE_SOURCES") == "1":
47 pn = d.getVar('PN')
48 # do_unpack is a hack for now; we only need it to get the
49 # dependencies do_unpack already has so we can extract the source
50 # ourselves
51 if oe.spdx_common.has_task(d, "do_unpack"):
52 deps.append("%s:do_unpack" % pn)
53
54 if oe.spdx_common.is_work_shared_spdx(d) and \
55 oe.spdx_common.process_sources(d):
56 # For kernel source code
57 if oe.spdx_common.has_task(d, "do_shared_workdir"):
58 deps.append("%s:do_shared_workdir" % pn)
59
60 return " ".join(deps)
61
62
42python do_collect_spdx_deps() { 63python do_collect_spdx_deps() {
43 # This task calculates the build time dependencies of the recipe, and is 64 # This task calculates the build time dependencies of the recipe, and is
44 # required because while a task can deptask on itself, those dependencies 65 # required because while a task can deptask on itself, those dependencies