]> code.ossystems Code Review - openembedded-core.git/commit
create-spdx: Use SPDXAnnotation to track native recipes
authorSaul Wold <Saul.Wold@windriver.com>
Mon, 27 Sep 2021 17:22:17 +0000 (10:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Sep 2021 23:14:46 +0000 (00:14 +0100)
commitba5ec03986a0bce8dccbc381fd34e44b8a135e66
tree1706ef9da84bc37dc0f487832f013877509f830a
parent8db551bba619f3b3612c59270043148214a462cc
create-spdx: Use SPDXAnnotation to track native recipes

Create a small function that checks for 'isNative' as part of an Annotation

When the collect_dep_sources() runs, it collects sources from both native
and non-native recipes. Later when the GENERATED_FROM matching occurs it
may find the file (via checksum) from the native recipe since it's the
same checksum as the target file. The that are generated DocumentRefs
point to the native recipe rather than the target recipe DocumentRef.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass