summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-02-23 19:23:43 +0000
committerKhem Raj <raj.khem@gmail.com>2022-02-23 14:49:56 -0800
commitbf344026d9798d8a9077aa7d52ba29e83cc4dd42 (patch)
tree790b1671f9d8088ce72e76c242e083ca3ee8888d /classes
parent967b2c074ca9d084d325e407cd5f8b32d6a406ec (diff)
downloadmeta-clang-bf344026d9798d8a9077aa7d52ba29e83cc4dd42.tar.gz
clang: set POPULATESYSROOTDEPS so that strip is present
do_populate_sysroot will execute the cross STRIP as part of the processing. In non-clang builds this is present via POPULATESYSROOTDEPS pulling in binutils, but in clang builds STRIP is set to llvm-strip which obviously isn't part of binutils. Set POPULATESYSROOTDEPS correctly to ensure that do_populate_sysroot has the strip binary available. Signed-off-by: Ross Burton <ross.burton@arm.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/clang.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass
index 0191111..6e4c43f 100644
--- a/classes/clang.bbclass
+++ b/classes/clang.bbclass
@@ -124,6 +124,9 @@ BASE_DEFAULT_DEPS:toolchain-clang:class-target = "${@clang_base_deps(d)}"
124BASE_DEFAULT_DEPS:append:class-native:toolchain-clang:runtime-llvm = " libcxx-native compiler-rt-native" 124BASE_DEFAULT_DEPS:append:class-native:toolchain-clang:runtime-llvm = " libcxx-native compiler-rt-native"
125BASE_DEFAULT_DEPS:append:class-nativesdk:toolchain-clang:runtime-llvm = " clang-native nativesdk-libcxx nativesdk-compiler-rt" 125BASE_DEFAULT_DEPS:append:class-nativesdk:toolchain-clang:runtime-llvm = " clang-native nativesdk-libcxx nativesdk-compiler-rt"
126 126
127# do_populate_sysroot needs STRIP
128POPULATESYSROOTDEPS:toolchain-clang:class-target = "clang-cross-${TARGET_ARCH}:do_populate_sysroot"
129
127cmake_do_generate_toolchain_file:append:toolchain-clang () { 130cmake_do_generate_toolchain_file:append:toolchain-clang () {
128 cat >> ${WORKDIR}/toolchain.cmake <<EOF 131 cat >> ${WORKDIR}/toolchain.cmake <<EOF
129set( CMAKE_CLANG_TIDY ${HOST_PREFIX}clang-tidy ) 132set( CMAKE_CLANG_TIDY ${HOST_PREFIX}clang-tidy )