[oe-commits] Fahad Usman : makedevs_1.0.0: got rid of separate native recipe and removed legacy staging

git version control git at git.openembedded.org
Fri Aug 27 12:28:35 UTC 2010


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

Author: Fahad Usman <fahad_usman at mentor.com>
Date:   Wed Aug 25 23:33:45 2010 +0000

makedevs_1.0.0: got rid of separate native recipe and removed legacy staging

* converted do_stage to do_install
* replaced ${STAGING_BINDIR} with ${D}${bindir}
* moved the do_install to non-native recipe
* added BBCLASSEXTEND = "native"
* added NATIVE_INSTALL_WORKS = "1"
* bumped PR

Signed-off-by: Fahad Usman <fahad_usman at mentor.com>

---

 recipes/makedevs/makedevs-native_1.0.0.bb |   10 ----------
 recipes/makedevs/makedevs_1.0.0.bb        |   10 ++++++++--
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/recipes/makedevs/makedevs-native_1.0.0.bb b/recipes/makedevs/makedevs-native_1.0.0.bb
deleted file mode 100644
index 004a713..0000000
--- a/recipes/makedevs/makedevs-native_1.0.0.bb
+++ /dev/null
@@ -1,10 +0,0 @@
-SECTION = "base"
-require makedevs_${PV}.bb
-inherit native
-
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/makedevs-${PV}"
-
-do_stage() {
-	install -d ${STAGING_BINDIR}/
-        install -m 0755 ${S}/makedevs ${STAGING_BINDIR}/
-}
diff --git a/recipes/makedevs/makedevs_1.0.0.bb b/recipes/makedevs/makedevs_1.0.0.bb
index cab1a4c..2b7e84a 100644
--- a/recipes/makedevs/makedevs_1.0.0.bb
+++ b/recipes/makedevs/makedevs_1.0.0.bb
@@ -2,12 +2,11 @@ DESCRIPTION = "A tool to make device nodes"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
+PR = "r9"
 
 SRC_URI = "file://makedevs.c"
 S = "${WORKDIR}/makedevs-${PV}"
 
-PR = "r8"
-
 inherit update-alternatives
 
 do_configure() {
@@ -18,6 +17,11 @@ do_compile() {
 	${CC} ${CFLAGS} ${LDFLAGS} -o ${S}/makedevs ${S}/makedevs.c
 }
 
+do_install_virtclass-native() {
+        install -d ${D}${bindir}/
+        install -m 0755 ${S}/makedevs ${D}${bindir}/
+}
+
 do_install() {
 	install -d ${D}${base_sbindir}
 	install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs.makedevs
@@ -28,4 +32,6 @@ ALTERNATIVE_NAME = "makedevs"
 ALTERNATIVE_LINK = "${base_sbindir}/makedevs"
 ALTERNATIVE_PRIORITY = "50"
 
+BBCLASSEXTEND = "native"
 
+NATIVE_INSTALL_WORKS = "1"





More information about the Openembedded-commits mailing list