]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
classes/spdx-*.bbclass: move spdx2 specific variables out of spdx-common class
authorAntonin Godard <antonin.godard@bootlin.com>
Thu, 27 Mar 2025 13:16:52 +0000 (14:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Mar 2025 11:19:06 +0000 (11:19 +0000)
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.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-2.2.bbclass
meta/classes/spdx-common.bbclass

index de62379c5030cfc54fdad564a42fd3d6e7bc21b6..7e8f8b9ff57bcc3c6c38b8fd8d80468a804ad0dd 100644 (file)
@@ -15,6 +15,8 @@ SPDX_SUPPLIER[doc] = "The SPDX PackageSupplier field for SPDX packages created f
     is the contact information for the person or organization who is doing the \
     build."
 
+SPDX_ARCHIVE_SOURCES ??= "0"
+SPDX_ARCHIVE_PACKAGED ??= "0"
 
 def get_namespace(d, name):
     import uuid
index 81ad4d3b7a9c57c39eabc44d8b9670c42e600c5f..36feb5680777d8e6aac80ac32a3f0644cbaac686 100644 (file)
@@ -26,8 +26,6 @@ SPDX_TOOL_VERSION ??= "1.0"
 SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy"
 
 SPDX_INCLUDE_SOURCES ??= "0"
-SPDX_ARCHIVE_SOURCES ??= "0"
-SPDX_ARCHIVE_PACKAGED ??= "0"
 
 SPDX_UUID_NAMESPACE ??= "sbom.openembedded.org"
 SPDX_NAMESPACE_PREFIX ??= "http://spdx.org/spdxdocs"