Skip to content

Commit

Permalink
clang: remove PROVIDES:append settings
Browse files Browse the repository at this point in the history
With these settings, we'll have multiple providers of llvm. This means
that with pristine poky master + meta-clang master, we'll have some
output like below:

  NOTE: Multiple providers are available for llvm-native (llvm-native, clang-native)
  Consider defining a PREFERRED_PROVIDER entry to match llvm-native

And when running 'bitbake world', we'll get error messages like below:

  ERROR: Multiple .bb files are due to be built which each provide llvm-native:
    virtual:native:/PATH/TO/poky/meta/recipes-devtools/llvm/llvm_19.1.4.bb
    virtual:native:/PATH/TO/Yocto/poky/meta-clang/recipes-devtools/clang/clang_git.bb

As the README.md has already specified how to use this layer, let's
remove such settings before sorting things out.

Signed-off-by: Chen Qi <[email protected]>
  • Loading branch information
ChenQi1989 authored and kraj committed Dec 2, 2024
1 parent 275d0a5 commit 147349b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions recipes-devtools/clang/clang_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,6 @@ do_install:append:class-nativesdk () {
sed -i -e 's,${B},,g' ${D}${libdir}/cmake/llvm/LLVMConfig.cmake
}

PROVIDES:append:class-native = " llvm-native"
PROVIDES:append:class-target = " llvm"

PACKAGES =+ "${PN}-libllvm ${PN}-lldb-python ${PN}-libclang-cpp ${PN}-tidy ${PN}-format ${PN}-tools \
libclang lldb lldb-server liblldb llvm-linker-tools"

Expand Down

0 comments on commit 147349b

Please sign in to comment.