serload-native: Removing legacy staging
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 14 Aug 2010 08:45:23 +0000 (10:45 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 14 Aug 2010 08:46:23 +0000 (10:46 +0200)
* Replaced do_stage function with do_install and replaced ${STAGING_BINDIR} with ${D}${bindir}
* removed FILES_DIR
* added PR
* ran through oe-stylize

Signed-off-by: Ahsan, Noor <noor_ahsan@mentor.com>
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/simpad-utilities/serload-native.bb

index 9be199f..cc5da73 100644 (file)
@@ -1,16 +1,19 @@
-SECTION = "console/utils"
-LICENSE= "GPL"
 DESCRIPTION = "Console utility for transferring a SIMpad boot image via serial a SIMpad"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/serload"
+SECTION = "console/utils"
+LICENSE = "GPL"
+PR = "r1"
+
 SRC_URI = "file://serialdownload.cpp file://main.cpp file://serialdownload.h"
 
 inherit native
 
 do_compile() {
-       cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp .
-       ${CXX} -I. -o serload main.cpp serialdownload.cpp
+        cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp .
+        ${CXX} -I. -o serload main.cpp serialdownload.cpp
 }
-
-do_stage() {
-       install -m 0755 serload ${STAGING_BINDIR}/
+do_install() {
+        install -d ${D}${bindir}/
+        install -m 0755 serload ${D}${bindir}/
 }
+
+NATIVE_INSTALL_WORKS = "1"