mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
classes/create-spdx-3.0: Add classes
Adds a class to generate SPDX 3.0 output and an image class that is used when generating images (From OE-Core rev: b63f6f50458fc6898e4deda5d6739e7bf3639c15) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
28c9ac0d4f
commit
8426e027e8
@@ -17,6 +17,7 @@ SPDXDEPLOY = "${SPDXDIR}/deploy"
|
||||
SPDXWORK = "${SPDXDIR}/work"
|
||||
SPDXIMAGEWORK = "${SPDXDIR}/image-work"
|
||||
SPDXSDKWORK = "${SPDXDIR}/sdk-work"
|
||||
SPDXSDKEXTWORK = "${SPDXDIR}/sdk-ext-work"
|
||||
SPDXDEPS = "${SPDXDIR}/deps.json"
|
||||
|
||||
SPDX_TOOL_NAME ??= "oe-spdx-creator"
|
||||
@@ -61,7 +62,7 @@ def get_json_indent(d):
|
||||
return 2
|
||||
return None
|
||||
|
||||
python() {
|
||||
def load_spdx_license_data(d):
|
||||
import json
|
||||
if d.getVar("SPDX_LICENSE_DATA"):
|
||||
return
|
||||
@@ -71,6 +72,9 @@ python() {
|
||||
# Transform the license array to a dictionary
|
||||
data["licenses"] = {l["licenseId"]: l for l in data["licenses"]}
|
||||
d.setVar("SPDX_LICENSE_DATA", data)
|
||||
|
||||
python() {
|
||||
load_spdx_license_data(d)
|
||||
}
|
||||
|
||||
def process_sources(d):
|
||||
|
||||
Reference in New Issue
Block a user