[oe] [PATCH] [v2] makedevs_1.0.0: got rid of separate native recipe and removed legacy staging (corrected signed-off by line)
Fahad Usman
fahad_usman at mentor.com
Thu Aug 26 09:33:45 UTC 2010
* 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"
--
1.6.3.3
More information about the Openembedded-devel
mailing list