From: Fahad Usman Date: Wed, 25 Aug 2010 23:33:45 +0000 (+0000) Subject: makedevs_1.0.0: got rid of separate native recipe and removed legacy staging X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7fe35ece6a4f87ecda31104795cb754dbf741fe;p=openembedded.git 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 --- 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 004a71374d..0000000000 --- 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 cab1a4c1e5..2b7e84a505 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"