summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mingetty
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-07-26 17:17:20 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-15 14:26:34 +0100
commita26ab59eeef89cd57fa99b3f5827b519ed8c5c16 (patch)
tree9439fe15e6706957cc60df2c50b4df51e7b448ae /meta/recipes-extended/mingetty
parent9ed6b34541d904b9a297316790783c2c53997a44 (diff)
downloadast2050-yocto-poky-a26ab59eeef89cd57fa99b3f5827b519ed8c5c16.zip
ast2050-yocto-poky-a26ab59eeef89cd57fa99b3f5827b519ed8c5c16.tar.gz
mingetty: cleanup update-alternatives deprecated code
(From OE-Core rev: eb541c4eac5f87be6bf30f32096bc1adacb883af) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mingetty')
-rw-r--r--meta/recipes-extended/mingetty/mingetty_1.08.bb9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-extended/mingetty/mingetty_1.08.bb b/meta/recipes-extended/mingetty/mingetty_1.08.bb
index a1f9eb2..235a3be 100644
--- a/meta/recipes-extended/mingetty/mingetty_1.08.bb
+++ b/meta/recipes-extended/mingetty/mingetty_1.08.bb
@@ -13,14 +13,13 @@ SRC_URI[sha256sum] = "0f55c90ba4faa913d91ef99cbf5cb2eb4dbe2780314c3bb17953f849c8
EXTRA_OEMAKE = "CC='${CC}'"
do_install(){
- mkdir -p ${D}${mandir}/man8
- mkdir -p ${D}${base_sbindir}
+ install -d ${D}${mandir}/man8 ${D}/${base_sbindir}
oe_runmake install DESTDIR=${D}
}
inherit update-alternatives
-ALTERNATIVE_NAME = "getty"
-ALTERNATIVE_LINK = "${base_sbindir}/getty"
-ALTERNATIVE_PATH = "${base_sbindir}/mingetty"
+ALTERNATIVE_${PN} = "getty"
+ALTERNATIVE_LINK_NAME[getty] = "${base_sbindir}/getty"
+ALTERNATIVE_TARGET[getty] = "${base_sbindir}/mingetty"
ALTERNATIVE_PRIORITY = "50"
OpenPOWER on IntegriCloud