Skip to contentSkip to conversation

llvm: move cross script install to separate sysroot preprocess function

PATCH New Jonathan Liu 1 participant 1 message Jun 13, 2013

v2 of 3 New Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 llvm: move cross script install to separate sysroot preprocess function

The llvm-config2.x script doesn't get placed in the target sysroot crosscripts directory otherwise.

---
 meta-oe/recipes-core/llvm/llvm.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-core/llvm/llvm.inc +6 -0
index 6cf9db8..fcd2666 100644
@@ -141,6 +141,12 @@ do_install() {
         # later for native case
         install -d ${D}${bindir}
         install -m 0755 bin/llvm-config ${D}${bindir}
+}
+
+SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_sysroot_preprocess"
+
+llvm_sysroot_preprocess() {
+    cd ${OECMAKE_BUILDPATH}
 
     # Fix the paths in the config script to make it find the binaries and
     # library files. Doing so allows 3rd party configure scripts working
Signature · 1 line
1.8.3