llvm: move cross script install to separate sysroot preprocess function
authorJonathan Liu <net147@gmail.com>
Thu, 13 Jun 2013 10:05:54 +0000 (10:05 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:31:00 +0000 (08:31 -0800)
The llvm-config2.x script doesn't get placed in the target sysroot
crosscripts directory otherwise.

(From meta-openembedded rev: 4704e25200c3749ac2ab2970c18b0a568cc3ce8e)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-core/llvm/llvm.inc

index 6cf9db8..fcd2666 100644 (file)
@@ -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