summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-06-24 13:10:59 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-27 13:03:35 +0100
commit10917abebf14b61c61634b3c6f2cba63181c9e76 (patch)
tree631b9f79ab1ba87445cce2812e587ab717d26948 /meta/classes
parentd077134b0a75c6e3c57782056ef47383f5642f71 (diff)
downloadpoky-10917abebf14b61c61634b3c6f2cba63181c9e76.tar.gz
classes/spdx-common: Move SPDX_SUPPLIER
Move the SPDX_SUPPLIER variable to create-spdx-2.2 since it's format only has meaning in SPDX 2.2 (SPDX 3 uses SPDX_PACKAGE_SUPPLIER with a different format) (From OE-Core rev: 628c1e04072178d2c8095e53d5f6600c45a2679f) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/create-spdx-2.2.bbclass8
-rw-r--r--meta/classes/spdx-common.bbclass7
2 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass
index 3ebf92b5e1..99061320e5 100644
--- a/meta/classes/create-spdx-2.2.bbclass
+++ b/meta/classes/create-spdx-2.2.bbclass
@@ -8,6 +8,14 @@ inherit spdx-common
8 8
9SPDX_VERSION = "2.2" 9SPDX_VERSION = "2.2"
10 10
11SPDX_ORG ??= "OpenEmbedded ()"
12SPDX_SUPPLIER ??= "Organization: ${SPDX_ORG}"
13SPDX_SUPPLIER[doc] = "The SPDX PackageSupplier field for SPDX packages created from \
14 this recipe. For SPDX documents create using this class during the build, this \
15 is the contact information for the person or organization who is doing the \
16 build."
17
18
11def get_namespace(d, name): 19def get_namespace(d, name):
12 import uuid 20 import uuid
13 namespace_uuid = uuid.uuid5(uuid.NAMESPACE_DNS, d.getVar("SPDX_UUID_NAMESPACE")) 21 namespace_uuid = uuid.uuid5(uuid.NAMESPACE_DNS, d.getVar("SPDX_UUID_NAMESPACE"))
diff --git a/meta/classes/spdx-common.bbclass b/meta/classes/spdx-common.bbclass
index 03f1d0cc27..18254c36aa 100644
--- a/meta/classes/spdx-common.bbclass
+++ b/meta/classes/spdx-common.bbclass
@@ -36,13 +36,6 @@ SPDX_LICENSES ??= "${COREBASE}/meta/files/spdx-licenses.json"
36 36
37SPDX_CUSTOM_ANNOTATION_VARS ??= "" 37SPDX_CUSTOM_ANNOTATION_VARS ??= ""
38 38
39SPDX_ORG ??= "OpenEmbedded ()"
40SPDX_SUPPLIER ??= "Organization: ${SPDX_ORG}"
41SPDX_SUPPLIER[doc] = "The SPDX PackageSupplier field for SPDX packages created from \
42 this recipe. For SPDX documents create using this class during the build, this \
43 is the contact information for the person or organization who is doing the \
44 build."
45
46def extract_licenses(filename): 39def extract_licenses(filename):
47 import re 40 import re
48 41