]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Nov 2022 13:43:36 +0000 (13:43 +0000)
commit34fa68a0b07328c4ed4eef81f8cde80137a91f18
tree05ad13056972f0938669326ac7dcf14c8680a08f
parent9ec01fe3e59be66331c14ab5391ecb0b6f140c22
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

Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
On-behalf-of: Avnet Embedded <AvnetEmbedded@avnet.eu>
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Reviewed-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/create-spdx-2.2.bbclass