diff options
author | Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> | 2025-03-31 14:15:34 +0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-03-31 07:02:51 -0700 |
commit | 11b169e210c3198d95ce5e9c95da4abfe5d8e39a (patch) | |
tree | dd74f12829f8f0f52994066cbda20c4a34603f21 | |
parent | 892380133becb17d95ffae95de1df025c9d72088 (diff) | |
download | meta-clang-11b169e210c3198d95ce5e9c95da4abfe5d8e39a.tar.gz |
layer.conf: disable conflicting LLVM PACKAGECONFIG options
The LLVM package in OE-Core got optional support for building libclc and
SPIRV-LLVM-Translator. However this also means that llvm-native also
install clang binaries into the sysroot. In order to remove a conflict
with the clang recipe from meta-clang forcibly disable PACKAGECONFIG
options causing conflict.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-rw-r--r-- | conf/layer.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index eea26f1..065a1c9 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -30,6 +30,12 @@ PREFERRED_PROVIDER_libgcc-initial = "libgcc-initial" | |||
30 | PREFERRED_PROVIDER_libunwind = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm android", "libcxx", "libunwind", d)}" | 30 | PREFERRED_PROVIDER_libunwind = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm android", "libcxx", "libunwind", d)}" |
31 | INHERIT += "clang" | 31 | INHERIT += "clang" |
32 | 32 | ||
33 | # libclc and SPIRV-LLVM-Trasnaltor from OE-Core/llvm conflict with Clang from | ||
34 | # meta-clang | ||
35 | PACKAGECONFIG:remove:pn-llvm = "libclc spirv-llvm-translator" | ||
36 | PACKAGECONFIG:remove:pn-llvm-native = "libclc spirv-llvm-translator" | ||
37 | PACKAGECONFIG:remove:pn-nativesdk-llvm = "libclc spirv-llvm-translator" | ||
38 | |||
33 | # Do not include clang in SDK unless user wants to | 39 | # Do not include clang in SDK unless user wants to |
34 | CLANGSDK ??= "0" | 40 | CLANGSDK ??= "0" |
35 | 41 | ||