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.bur...@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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#155720): 
https://lists.openembedded.org/g/openembedded-core/message/155720
Mute This Topic: https://lists.openembedded.org/mt/85413540/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to