diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2024-06-24 13:10:59 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-27 13:03:35 +0100 |
| commit | 10917abebf14b61c61634b3c6f2cba63181c9e76 (patch) | |
| tree | 631b9f79ab1ba87445cce2812e587ab717d26948 /meta/classes | |
| parent | d077134b0a75c6e3c57782056ef47383f5642f71 (diff) | |
| download | poky-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.bbclass | 8 | ||||
| -rw-r--r-- | meta/classes/spdx-common.bbclass | 7 |
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 | ||
| 9 | SPDX_VERSION = "2.2" | 9 | SPDX_VERSION = "2.2" |
| 10 | 10 | ||
| 11 | SPDX_ORG ??= "OpenEmbedded ()" | ||
| 12 | SPDX_SUPPLIER ??= "Organization: ${SPDX_ORG}" | ||
| 13 | SPDX_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 | |||
| 11 | def get_namespace(d, name): | 19 | def 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 | ||
| 37 | SPDX_CUSTOM_ANNOTATION_VARS ??= "" | 37 | SPDX_CUSTOM_ANNOTATION_VARS ??= "" |
| 38 | 38 | ||
| 39 | SPDX_ORG ??= "OpenEmbedded ()" | ||
| 40 | SPDX_SUPPLIER ??= "Organization: ${SPDX_ORG}" | ||
| 41 | SPDX_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 | |||
| 46 | def extract_licenses(filename): | 39 | def extract_licenses(filename): |
| 47 | import re | 40 | import re |
| 48 | 41 | ||
