diff options
author | Konrad Weihmann <kweihmann@witekio.com> | 2023-01-16 08:25:26 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-10-27 08:58:04 -0700 |
commit | e8a5e806b48a36046ef78a95f4d4cd428e8ea4c2 (patch) | |
tree | c37d54a572afdfeb18cbdf75557131a8d103c58b | |
parent | 2d3f9dd9dc2c1ee332cc45ada2c0609ade53a645 (diff) | |
download | meta-clang-e8a5e806b48a36046ef78a95f4d4cd428e8ea4c2.tar.gz |
common-source: fix create-spdx handlingdunfell-clang12
- 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>
-rw-r--r-- | recipes-devtools/clang/common-source.inc | 6 |
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 | ||
10 | do_configure[depends] += "llvm-project-source-${PV}:do_patch" | 10 | do_configure[depends] += "llvm-project-source-${PV}:do_patch" |
11 | do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack" | 11 | do_populate_lic[depends] += "llvm-project-source-${PV}:do_unpack" |
12 | do_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 | ||
16 | def is_work_shared_spdx(d): | ||
17 | return True | ||