Patchwork [meta-oe,PATCHv2] rfkill: use update-alternatives

login
register
mail settings
Submitter Martin Jansa
Date June 19, 2012, 8:36 a.m.
Message ID <1340094979-19283-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/30107/
State Accepted
Commit b84f1a473856e8560761e1e3f045f805a7fe9362
Headers show

Comments

Martin Jansa - June 19, 2012, 8:36 a.m.
From: Saul Wold <sgw@linux.intel.com>

* Since oe-core added rfkill to busybox, this recipe needs to use u-a
  also.
* MJ: added ALERNATIVE_LINK_NAME[rfkill]
* MJ: increased ALTERNATIVE_PRIORITY (busybox also have 50)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Patch

diff --git a/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb b/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb
index 561fdc7..430cf65 100644
--- a/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb
+++ b/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb
@@ -3,6 +3,7 @@  HOMEPAGE = "http://linuxwireless.org/en/users/Documentation/rfkill"
 SECTION = "base"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=c6036d0eb7edbfced28c4160e5d3fa94"
+PR = "r1"
 
 SRC_URI = "http://wireless.kernel.org/download/${PN}/${P}.tar.bz2 \
            file://0001-rfkill-makefile-don-t-use-t-the-OE-install-wrapper-d.patch"
@@ -16,3 +17,10 @@  do_compile() {
 do_install() {
         oe_runmake DESTDIR=${D} install
 }
+
+inherit update-alternatives
+
+ALTERNATIVE_${PN} = "rfkill"
+ALTERNATIVE_PRIORITY = "60"
+ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill"
+