]> code.ossystems Code Review - openembedded-core.git/commit
classes/create-spdx: Fix up license reporting
authorJoshua Watt <JPEWhacker@gmail.com>
Wed, 1 Sep 2021 13:44:50 +0000 (08:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Sep 2021 08:03:36 +0000 (09:03 +0100)
commit28d9d035c0ff8fcaf28bc96a976a43a602a47e94
tree8ded78ce591e7d2d4ef53009498f50993f83a80f
parentdf7c88a48621d32c02f328eedc314f10d475b758
classes/create-spdx: Fix up license reporting

Licenses reported in the SPDX documents should be either:
 A) A valid SPDX identifier cross referenced from the SPDX license
    database
 B) A "LicenseRef" to a license described in the SPDX document

The licensing code will now add a placeholder extracted license with
corresponding "LicenseRef" for any licenses that are not matched to the
SPDX database

Parenthesis in the license expression are now handled correctly

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass
meta/lib/oe/spdx.py