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

git version control git at git.openembedded.org
Sat Aug 14 08:47:52 UTC 2010


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

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

serload-native: Removing legacy staging

* 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 at mentor.com>
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>

---

 recipes/simpad-utilities/serload-native.bb |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/recipes/simpad-utilities/serload-native.bb b/recipes/simpad-utilities/serload-native.bb
index 9be199f..cc5da73 100644
--- a/recipes/simpad-utilities/serload-native.bb
+++ b/recipes/simpad-utilities/serload-native.bb
@@ -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"





More information about the Openembedded-commits mailing list