diff mbox series

[v2,8/8] ci/clang: add llvm-native from clang README

Message ID 20230719012240.3567881-8-jon.mason@arm.com
State New
Headers show
Series [v2,1/8] CI: track master | expand

Commit Message

Jon Mason July 19, 2023, 1:22 a.m. UTC
The following error is seen:
ERROR: Nothing PROVIDES 'llvm-native' (but virtual:native:/builds/jonmason00/meta-arm/work/build/../poky/meta/recipes-graphics/mesa/mesa_23.1.3.bb DEPENDS on or otherwise requires it). Close matches:
  ovmf-native
  rust-llvm-native
  vim-native

Work around this by using the llvm-native from meta-clang

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 ci/clang.yml | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/ci/clang.yml b/ci/clang.yml
index ecfd73b2..b9425fa7 100644
--- a/ci/clang.yml
+++ b/ci/clang.yml
@@ -8,6 +8,12 @@  repos:
 local_conf_header:
   toolchain: |
     TOOLCHAIN = "clang"
+    PREFERRED_PROVIDER_llvm = "clang"
+    PREFERRED_PROVIDER_llvm-native = "clang-native"
+    PREFERRED_PROVIDER_nativesdk-llvm = "nativesdk-clang"
+    PROVIDES:pn-clang = "llvm"
+    PROVIDES:pn-clang-native = "llvm-native"
+    PROVIDES:pn-nativesdk-clang = "nativesdk-llvm"
     # This is needed to stop bitbake getting confused about what clang/llvm is
     # being used, see https://github.com/kraj/meta-clang/pull/766
     BBMASK += "/meta/recipes-devtools/llvm/llvm.*\.bb"