create-spdx: handle CLOSED license
PATCH 1/1 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 <[email protected]>
--- meta/classes/create-spdx.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/create-spdx.bbclass +3 -0
@@ -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
Signature · 1 line
2.25.1