diff options
Diffstat (limited to 'meta/classes/spdx-common.bbclass')
| -rw-r--r-- | meta/classes/spdx-common.bbclass | 21 |
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 | ||
| 40 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" | 40 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" |
| 41 | 41 | ||
| 42 | def 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 | |||
| 42 | python do_collect_spdx_deps() { | 63 | python 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 |
