diff options
author | Fahad Usman <fahad_usman@mentor.com> | 2010-08-25 23:33:45 +0000 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-08-27 13:48:37 +0200 |
commit | c7fe35ece6a4f87ecda31104795cb754dbf741fe (patch) | |
tree | 0026094b63002179f24381fd03a583f42469ee5d /recipes/makedevs | |
parent | 59bed0ad2a3eb0cb73b07c0b6992380fe43dc5cd (diff) |
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@mentor.com>
Diffstat (limited to 'recipes/makedevs')
-rw-r--r-- | recipes/makedevs/makedevs-native_1.0.0.bb | 10 | ||||
-rw-r--r-- | 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 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" |