[oe] [PATCH] serload-native: Removing legacy staging

Ahsan, Noor noor_ahsan at mentor.com
Fri Aug 13 11:50:16 UTC 2010


* Replaced do_stage function with do_install and replaced ${STAGING_BINDIR} with ${D}${bindir}

Signed-off-by: Ahsan, Noor <noor_ahsan at mentor.com>
---
 recipes/simpad-utilities/serload-native.bb |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/recipes/simpad-utilities/serload-native.bb b/recipes/simpad-utilities/serload-native.bb
index 9be199f..d147db2 100644
--- a/recipes/simpad-utilities/serload-native.bb
+++ b/recipes/simpad-utilities/serload-native.bb
@@ -3,14 +3,18 @@ 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"
 SRC_URI = "file://serialdownload.cpp file://main.cpp file://serialdownload.h"
+PR = "r1"
 
 inherit native
 
+NATIVE_INSTALL_WORKS = "1"
+
 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}/
 }
-- 
1.6.3.3





More information about the Openembedded-devel mailing list