[oe-commits] Frans Meulenbroeks : genboot-native: Removing legacy staging

git version control git at git.openembedded.org
Sat Aug 14 08:57:12 UTC 2010


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

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Sat Aug 14 10:56:02 2010 +0200

genboot-native: Removing legacy staging

* Replaced do_stage function with do_install and replaced ${STAGING_BINDIR} with ${D}${bindir}
* removed FILESDIR
* bumped PR
* ran through oe-stylize

Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>

---

 recipes/simpad-utilities/genboot-native.bb |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/recipes/simpad-utilities/genboot-native.bb b/recipes/simpad-utilities/genboot-native.bb
index 47b9b34..b7bfe01 100644
--- a/recipes/simpad-utilities/genboot-native.bb
+++ b/recipes/simpad-utilities/genboot-native.bb
@@ -1,20 +1,21 @@
-SECTION = "console/utils"
-PR = "r1"
 DESCRIPTION = "Console utility for generating a SIMpad boot image for the proprietary SIEMENS Switzerland bootloader"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/genboot"
-SRC_URI = "file://gen_boot.c file://arnold_boot.h file://simpad-make-flashimg"
+SECTION = "console/utils"
 LICENSE = "GPL"
-
 DEPENDS = "pad-native"
+PR = "r2"
+
+SRC_URI = "file://gen_boot.c file://arnold_boot.h file://simpad-make-flashimg"
 
 inherit native
 
 do_compile() {
-	cp ${WORKDIR}/*.h ${WORKDIR}/*.c .
-	${CC} -I. -o genboot gen_boot.c
+        cp ${WORKDIR}/*.h ${WORKDIR}/*.c .
+        ${CC} -I. -o genboot gen_boot.c
 }
-
-do_stage() {
-	install -m 0755 genboot ${STAGING_BINDIR}/
-	install -m 0755 ${WORKDIR}/simpad-make-flashimg ${STAGING_BINDIR}/
+do_install() {
+        install -d ${D}${bindir}/
+        install -m 0755 genboot ${D}${bindir}/
+        install -m 0755 ${WORKDIR}/simpad-make-flashimg ${D}${bindir}/
 }
+
+NATIVE_INSTALL_WORKS = "1"





More information about the Openembedded-commits mailing list