All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] create-spdx: handle CLOSED license
@ 2021-09-06 14:36 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2021-09-06 14:36 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/classes/create-spdx.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass
index 1e0b3605587..f9d5a13a2f9 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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-06 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-06 14:36 [PATCH] create-spdx: handle CLOSED license Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.