[oe-commits] Jonathan Liu : llvm: move cross script install to separate sysroot preprocess function

git at git.openembedded.org git at git.openembedded.org
Thu Jun 20 10:23:27 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: 4704e25200c3749ac2ab2970c18b0a568cc3ce8e
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4704e25200c3749ac2ab2970c18b0a568cc3ce8e

Author: Jonathan Liu <net147 at gmail.com>
Date:   Thu Jun 13 10:05:54 2013 +0000

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.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-core/llvm/llvm.inc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index 6cf9db8..fcd2666 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -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



More information about the Openembedded-commits mailing list