genboot-native: Removing legacy staging
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 14 Aug 2010 08:56:02 +0000 (10:56 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 14 Aug 2010 08:57:01 +0000 (10:57 +0200)
* 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@mentor.com>
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/simpad-utilities/genboot-native.bb

index 47b9b34..b7bfe01 100644 (file)
@@ -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"