summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@witekio.com>2023-01-16 08:25:26 +0100
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commit12aec56bfac53ca9944014ca6af97572188e47c4 (patch)
tree0eca0e37ec0188ae9c4631a025436271dacf499c
parentdf70156857344621fbf97b9066a5197c04b17ec9 (diff)
downloadmeta-clang-12aec56bfac53ca9944014ca6af97572188e47c4.tar.gz
common-source: fix create-spdx handling
- do_create_spdx does have to wait till the shared source tree is properly populated - override the spdx class code detection to determine if sources are under work-shared. the core code does only look at WORKDIR, which isn’t overridden in every case, more likely only S and B are touched, which make the spdx class code assume that these are per-workdir sources and starts to remove the shared sources via bitbake’s cleandirs settings. Avoid that by let the code always handle recipes including common-source as shared sources. Relates to #721 Signed-off-by: Konrad Weihmann <kweihmann@witekio.com> (cherry picked from commit b7c0dcc4bc7f0d273f14cc0a70bcad5555a4be04)
-rw-r--r--recipes-devtools/clang/common-source.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-devtools/clang/common-source.inc b/recipes-devtools/clang/common-source.inc
index e7fb06f..cd95453 100644
--- a/recipes-devtools/clang/common-source.inc
+++ b/recipes-devtools/clang/common-source.inc
@@ -9,3 +9,9 @@ SRC_URI = ""
9 9
10do_configure[depends] += "llvm-project-source-${PV}:do_patch" 10do_configure[depends] += "llvm-project-source-${PV}:do_patch"
11do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack" 11do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack"
12do_create_spdx[depends] += "llvm-project-source-${PV}:do_patch"
13
14# spdx shared workdir detection fails as not WORKDIR is altered but S and B
15# return always true to fix that
16def is_work_shared_spdx(d):
17 return True