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

(From meta-openembedded rev: 90e34fa05af97dbd2ac4cd12032fe805cacf4071)

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-common.bb

index 612fd34..192919e 100644 (file)
@@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
 
 SRC_URI = "file://llvm-config"
 
-do_install() {
+ALLOW_EMPTY_${PN} = "1"
+SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_common_sysroot_preprocess"
+
+llvm_common_sysroot_preprocess() {
     install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
     install -m 0755 ${WORKDIR}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
 }