]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
create-spdx: default share_src for shared sources
authorKonrad Weihmann <kweihmann@witekio.com>
Wed, 9 Nov 2022 14:37:14 +0000 (08:37 -0600)
committerSteve Sakoman <steve@sakoman.com>
Fri, 25 Nov 2022 16:16:14 +0000 (06:16 -1000)
commit30cdb7fbec8e9cf5c5a25e28a1102fa562a7f6c2
tree7da5301bf02abbd5a54c4e7e423908efa251fb9d
parent50499534bc8083f2f086ce171e9e09b5502a7470
create-spdx: default share_src for shared sources

if a source is using work-shared but isn't a kernel,
like for instance llvm-source from meta-clang, share_src was
previously undefined leading to a crash of the python code.
Default to WORKDIR and just override it in case the source being
a kernel recipe.
Additionally changes the variable names in the following, as
they imply that it's only about the kernel, which is not the case
in every case

(From OE-Core rev: 34fa68a0b07328c4ed4eef81f8cde80137a91f18)

Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
On-behalf-of: Avnet Embedded <AvnetEmbedded@avnet.eu>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/create-spdx.bbclass