[oe-commits] Henning Heinold : llvm-common: use do_install to do the stuff

git version control git at git.openembedded.org
Fri Jul 16 13:09:34 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 145cb3f5d649181631493a3923cfbceed647297a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=145cb3f5d649181631493a3923cfbceed647297a

Author: Henning Heinold <heinold at inf.fu-berlin.de>
Date:   Fri Jul 16 15:07:01 2010 +0200

llvm-common: use do_install to do the stuff

* bump PR

---

 recipes/llvm/llvm-common.bb |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/recipes/llvm/llvm-common.bb b/recipes/llvm/llvm-common.bb
index 861ae4e..225a6d0 100644
--- a/recipes/llvm/llvm-common.bb
+++ b/recipes/llvm/llvm-common.bb
@@ -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"





More information about the Openembedded-commits mailing list