From b71bfba1b5076ad1b9a10c08ef0e3393ccbed92a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 6 Sep 2021 15:36:13 +0100 Subject: 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 Signed-off-by: Richard Purdie --- 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 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 -- cgit 1.2.3-korg