summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-03-27 14:16:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-28 11:19:40 +0000
commit8c9f86ce0628d257015a472729fd119bc56bf761 (patch)
tree93aa1e2a0ca03505791ba8ba62850da590caf318
parentb199e9ff9f3d58b3361bf4cc5612cbcb4fbadd7f (diff)
downloadpoky-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.bbclass2
-rw-r--r--meta/classes/spdx-common.bbclass2
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
18SPDX_ARCHIVE_SOURCES ??= "0"
19SPDX_ARCHIVE_PACKAGED ??= "0"
18 20
19def get_namespace(d, name): 21def 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"
26SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy" 26SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy"
27 27
28SPDX_INCLUDE_SOURCES ??= "0" 28SPDX_INCLUDE_SOURCES ??= "0"
29SPDX_ARCHIVE_SOURCES ??= "0"
30SPDX_ARCHIVE_PACKAGED ??= "0"
31 29
32SPDX_UUID_NAMESPACE ??= "sbom.openembedded.org" 30SPDX_UUID_NAMESPACE ??= "sbom.openembedded.org"
33SPDX_NAMESPACE_PREFIX ??= "http://spdx.org/spdxdocs" 31SPDX_NAMESPACE_PREFIX ??= "http://spdx.org/spdxdocs"