From: Joshua Watt Date: Fri, 27 Sep 2024 15:51:57 +0000 (-0600) Subject: Add script to make SPDX bindings X-Git-Tag: yocto-5.2~1678 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a5fdf54f975f9bc30758aec1f6f27e2d8149de;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Add script to make SPDX bindings Adds a script to generate the SPDX code bindings Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- diff --git a/scripts/contrib/make-spdx-bindings.sh b/scripts/contrib/make-spdx-bindings.sh new file mode 100755 index 00000000000..31caaf339d3 --- /dev/null +++ b/scripts/contrib/make-spdx-bindings.sh @@ -0,0 +1,12 @@ +#! /bin/sh +# +# SPDX-License-Identifier: MIT + +THIS_DIR="$(dirname "$0")" + +VERSION="3.0.1" + +shacl2code generate --input https://spdx.org/rdf/$VERSION/spdx-model.ttl \ + --input https://spdx.org/rdf/$VERSION/spdx-json-serialize-annotations.ttl \ + --context https://spdx.org/rdf/$VERSION/spdx-context.jsonld \ + python -o $THIS_DIR/../../meta/lib/oe/spdx30.py