aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-06-13 10:05:54 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-06-20 12:29:56 +0200
commit4704e25200c3749ac2ab2970c18b0a568cc3ce8e (patch)
tree557974b37532b784bf4e0410751d57f240564afd
parent90e34fa05af97dbd2ac4cd12032fe805cacf4071 (diff)
downloadmeta-openembedded-4704e25200c3749ac2ab2970c18b0a568cc3ce8e.tar.gz
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@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-core/llvm/llvm.inc6
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 6cf9db8d79..fcd26668b7 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