diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-03-27 14:16:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-28 11:19:40 +0000 |
commit | 8c9f86ce0628d257015a472729fd119bc56bf761 (patch) | |
tree | 93aa1e2a0ca03505791ba8ba62850da590caf318 | |
parent | b199e9ff9f3d58b3361bf4cc5612cbcb4fbadd7f (diff) | |
download | poky-8c9f86ce0628d257015a472729fd119bc56bf761.tar.gz |
classes/spdx-*.bbclass: move spdx2 specific variables out of spdx-common class
Setting SPDX_ARCHIVE_SOURCES and SPDX_ARCHIVE_PACKAGED makes no
difference when using the spdx-3.0 class. Move these two in the spdx-2.0
class since they are only used there.
(From OE-Core rev: 8ce06538c9cde0f09909a5a2e61ec10b0d35df49)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/create-spdx-2.2.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/spdx-common.bbclass | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass index de62379c50..7e8f8b9ff5 100644 --- a/meta/classes/create-spdx-2.2.bbclass +++ b/meta/classes/create-spdx-2.2.bbclass | |||
@@ -15,6 +15,8 @@ SPDX_SUPPLIER[doc] = "The SPDX PackageSupplier field for SPDX packages created f | |||
15 | is the contact information for the person or organization who is doing the \ | 15 | is the contact information for the person or organization who is doing the \ |
16 | build." | 16 | build." |
17 | 17 | ||
18 | SPDX_ARCHIVE_SOURCES ??= "0" | ||
19 | SPDX_ARCHIVE_PACKAGED ??= "0" | ||
18 | 20 | ||
19 | def get_namespace(d, name): | 21 | def get_namespace(d, name): |
20 | import uuid | 22 | import uuid |
diff --git a/meta/classes/spdx-common.bbclass b/meta/classes/spdx-common.bbclass index 81ad4d3b7a..36feb56807 100644 --- a/meta/classes/spdx-common.bbclass +++ b/meta/classes/spdx-common.bbclass | |||
@@ -26,8 +26,6 @@ SPDX_TOOL_VERSION ??= "1.0" | |||
26 | SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy" | 26 | SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy" |
27 | 27 | ||
28 | SPDX_INCLUDE_SOURCES ??= "0" | 28 | SPDX_INCLUDE_SOURCES ??= "0" |
29 | SPDX_ARCHIVE_SOURCES ??= "0" | ||
30 | SPDX_ARCHIVE_PACKAGED ??= "0" | ||
31 | 29 | ||
32 | SPDX_UUID_NAMESPACE ??= "sbom.openembedded.org" | 30 | SPDX_UUID_NAMESPACE ??= "sbom.openembedded.org" |
33 | SPDX_NAMESPACE_PREFIX ??= "http://spdx.org/spdxdocs" | 31 | SPDX_NAMESPACE_PREFIX ??= "http://spdx.org/spdxdocs" |