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-01-16 21:24:18 -0800
commitb7c0dcc4bc7f0d273f14cc0a70bcad5555a4be04 (patch)
tree327acb7d2e7a1725eb4af5b73195856710f14b35
parentdc95c5ee548526c615e8ee740a00c93abbe5da1a (diff)
downloadmeta-clang-b7c0dcc4bc7f0d273f14cc0a70bcad5555a4be04.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>
-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