diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2024-10-29 22:07:43 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-01 12:07:12 +0000 |
| commit | 8f4759806ee868a32a063943059345641eb26f22 (patch) | |
| tree | b089368474236cc82d71a569ff14e705b334f887 /meta/lib | |
| parent | 29c65baf76f54258ab40b75c6ad205a3ebd06316 (diff) | |
| download | poky-8f4759806ee868a32a063943059345641eb26f22.tar.gz | |
create-spdx-{2.2,3.0}: fix do_create_spdx dependency while spdx include sources
Call function ${@create_spdx_source_deps(d)} or ${create_spdx_source_deps(d)}
along with addtask not working, use task do_create_spdx flag 'depends'
to instead
Move function create_spdx_source_deps to spdx-common.bbclass for both of
create-spdx-2.2.bbclass and create-spdx-3.0.bbclass
(From OE-Core rev: dda4b7ccd416ef370634babd150e944f2aa9116e)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Reviewed-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oe/spdx_common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py index 1ea55419ae..7a85579f64 100644 --- a/meta/lib/oe/spdx_common.py +++ b/meta/lib/oe/spdx_common.py | |||
| @@ -226,6 +226,10 @@ def get_patched_src(d): | |||
| 226 | d.setVar("WORKDIR", workdir) | 226 | d.setVar("WORKDIR", workdir) |
| 227 | 227 | ||
| 228 | 228 | ||
| 229 | def has_task(d, task): | ||
| 230 | return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False)) | ||
| 231 | |||
| 232 | |||
| 229 | def fetch_data_to_uri(fd, name): | 233 | def fetch_data_to_uri(fd, name): |
| 230 | """ | 234 | """ |
| 231 | Translates a bitbake FetchData to a string URI | 235 | Translates a bitbake FetchData to a string URI |
