diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2024-12-25 21:43:20 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-08 12:50:14 +0000 |
commit | 4d8103bfedc6865c3f7b9969a67480a093e62730 (patch) | |
tree | 85339e15e4844f3e038907da75ff95008c81054f /meta/lib | |
parent | 0fee98b8e8245a829f2c524c987711b896553508 (diff) | |
download | poky-4d8103bfedc6865c3f7b9969a67480a093e62730.tar.gz |
meta/lib/oe/spdx30_tasks.py: set license alias to hasConcludedLicense relationship
Set license alias other than spdxId to hasConcludedLicense relationship
$ echo 'MACHINE = "qemux86-64"' >> conf/local.conf
$ bitbake shadow
$ In tmp/deploy/spdx/3.0.1/corei7-64/recipes/recipe-shadow.spdx.json
Before this commit
...
{
"type": "Relationship",
...
"from": "http://spdx.org/spdxdocs/shadow-10e66933-65cf-5a2d-9a1d-99b12a405441/c34a0920c2f689375e786a80ab3176b844997d543b73dd5f99e6ffa8fcc72fee/source/8",
"relationshipType": "hasConcludedLicense",
"to": [
"http://spdx.org/spdxdocs/shadow-10e66933-65cf-5a2d-9a1d-99b12a405441/c34a0920c2f689375e786a80ab3176b844997d543b73dd5f99e6ffa8fcc72fee/license/3_24_0/BSD-3-Clause"
]
},
...
After this commit
...
{
"type": "Relationship",
...
"from": "http://spdx.org/spdxdocs/shadow-10e66933-65cf-5a2d-9a1d-99b12a405441/c34a0920c2f689375e786a80ab3176b844997d543b73dd5f99e6ffa8fcc72fee/source/8",
"relationshipType": "hasConcludedLicense",
"to": [
"http://spdxdocs.org/openembedded-alias/by-doc-hash/cc72db638e3f8e283e722af0ecc77d19f93cc6736700ee76477e3773b6b07b05/shadow/UNIHASH/license/3_24_0/BSD-3-Clause"
]
},
...
(From OE-Core rev: 0530b45a5f27adff55251ce909ad4f077c1076d6)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.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/spdx30_tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 036c58bf4b..c60c97896c 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py | |||
@@ -524,7 +524,7 @@ def create_spdx(d): | |||
524 | build_objset.new_relationship( | 524 | build_objset.new_relationship( |
525 | source_files, | 525 | source_files, |
526 | oe.spdx30.RelationshipType.hasConcludedLicense, | 526 | oe.spdx30.RelationshipType.hasConcludedLicense, |
527 | [recipe_spdx_license], | 527 | [oe.sbom30.get_element_link_id(recipe_spdx_license)], |
528 | ) | 528 | ) |
529 | 529 | ||
530 | dep_sources = {} | 530 | dep_sources = {} |