summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@witekio.com>2023-01-16 08:25:26 +0100
committerKhem Raj <raj.khem@gmail.com>2023-01-16 21:24:06 -0800
commit36d2b65f81542ea5e36664cfdc4d1b5763b9ba4b (patch)
treed2f17d94b5f699f8a252523e71e2b7da1a804d64 /recipes-devtools
parent948822169418346738c017d24c5ebf9b3dbc0099 (diff)
downloadmeta-clang-36d2b65f81542ea5e36664cfdc4d1b5763b9ba4b.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. Closes #721 Signed-off-by: Konrad Weihmann <kweihmann@witekio.com>
Diffstat (limited to 'recipes-devtools')
-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