All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [v2] makedevs_1.0.0: got rid of separate native recipe and removed legacy staging (corrected signed-off by line)
@ 2010-08-26  9:33 Fahad Usman
  0 siblings, 0 replies; only message in thread
From: Fahad Usman @ 2010-08-26  9:33 UTC (permalink / raw)
  To: openembedded-devel

* 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@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"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-26  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-26  9:33 [PATCH] [v2] makedevs_1.0.0: got rid of separate native recipe and removed legacy staging (corrected signed-off by line) Fahad Usman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.