aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-09-06 15:36:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 09:25:04 +0100
commitb71bfba1b5076ad1b9a10c08ef0e3393ccbed92a (patch)
treef68ee7e47eea89391fd206ba983f7c1a65ddb3cf /meta
parent92719e01a90f2a80f5cceb2f98a48c49f0c24f1c (diff)
downloadopenembedded-core-b71bfba1b5076ad1b9a10c08ef0e3393ccbed92a.tar.gz
openembedded-core-b71bfba1b5076ad1b9a10c08ef0e3393ccbed92a.tar.bz2
openembedded-core-b71bfba1b5076ad1b9a10c08ef0e3393ccbed92a.zip
create-spdx: handle CLOSED license
The special CLOSED license means that this is closed source code with no other licensing assertions. It's not a generic license in oe-core, and not a SPDX license, so transform it to NONE explicitly. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/create-spdx.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass
index 0a2fad5640..db85677d4c 100644
--- a/meta/classes/create-spdx.bbclass
+++ b/meta/classes/create-spdx.bbclass
@@ -105,6 +105,9 @@ def convert_license_to_spdx(lic, document, d, existing={}):
if l == "|":
return "OR"
+ if l == "CLOSED":
+ return "NONE"
+
spdx_license = d.getVarFlag("SPDXLICENSEMAP", l) or l
if spdx_license in license_data["licenses"]:
return spdx_license