Patchwork [meta-oe] llvm: move cross script install to separate sysroot preprocess function

login
register
mail settings
Submitter Jonathan Liu
Date May 29, 2013, 7:14 a.m.
Message ID <1369811649-14728-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50663/
State Superseded, archived
Headers show

Comments

Jonathan Liu - May 29, 2013, 7:14 a.m.
The llvm-config2.x script doesn't get placed in the target sysroot
crosscripts directory otherwise.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta-oe/recipes-core/llvm/llvm.inc | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc
index b2ab935..546a40b 100644
--- a/meta-oe/recipes-core/llvm/llvm.inc
+++ b/meta-oe/recipes-core/llvm/llvm.inc
@@ -136,6 +136,13 @@  do_install() {
         # later for native case
         install -d ${D}${bindir}
         install -m 0755 bin/llvm-config ${D}${bindir}
+}
+
+SYSROOT_PREPROCESS_FUNCS += "llvm_sysroot_preprocess"
+SYSROOT_PREPROCESS_FUNCS_virtclass-native += ""
+
+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