llvm-common: use do_install to do the stuff
authorHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 16 Jul 2010 13:07:01 +0000 (15:07 +0200)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 16 Jul 2010 13:08:53 +0000 (15:08 +0200)
* bump PR

recipes/llvm/llvm-common.bb

index 861ae4e..225a6d0 100644 (file)
@@ -1,21 +1,19 @@
 DESCRIPTION = "Helper script for OE's llvm support"
 
-PR = "r2"
-
-BBCLASSEXTEND = "native"
+PR = "r3"
 
 SRC_URI = "file://llvm-config"
 
-PACKAGES = ""
+NATIVE_INSTALL_WORKS = "1"
 
-# For llvm-common the script should end up in STAGING_BINDIR_CROSS
-# and for llvm-common-native it should be in STAGING_BINDIR. The
-# script works together with a script that is installed by a
-# corresponding llvm(-native) package.
-DESTINATION = "${STAGING_BINDIR_CROSS}"
-DESTINATION_virtclass-native = "${STAGING_BINDIR}"
+do_install_virtclass-native() {
+  install -d ${D}${bindir}
+  install -m 0755 ${WORKDIR}/llvm-config ${D}${bindir}
+}
 
-do_stage() {
-  install -d ${DESTINATION}
-  install -m 0755 ${WORKDIR}/llvm-config ${DESTINATION}
+do_install() {
+  install -d ${STAGING_BINDIR_CROSS}
+  install -m 0755 ${WORKDIR}/llvm-config ${STAGING_BINDIR_CROSS}
 }
+
+BBCLASSEXTEND = "native"