[oe] [PATCH] rfkill: use update-alternatives
Martin Jansa
martin.jansa at gmail.com
Tue Jun 19 08:20:29 UTC 2012
On Mon, Jun 18, 2012 at 12:19:23PM -0700, Saul Wold wrote:
> Since oe-core added rfkill to busybox, this recipe needs to use u-a
> also.
>
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
> meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb b/meta-oe/recipes-connectivity/rfkill/rfkill_0.4.bb
> index 561fdc7..548990c 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,9 @@ do_compile() {
> do_install() {
> oe_runmake DESTDIR=${D} install
> }
> +
> +inherit update-alternatives
> +
> +ALTERNATIVE_${PN} = "rfkill"
> +ALTERNATIVE_PRIORITY = "50"
Thanks for quick reaction, but something is wrong:
WARNING: rfkill: alternative target (/usr/bin/rfkill or /usr/bin/rfkill.rfkill) does not exist, skipping...
WARNING: rfkill: NOT adding alternative provide /usr/bin/rfkill: /usr/bin/rfkill.rfkill does not exist
WARNING: alt_link == alt_target: /usr/bin/rfkill == /usr/bin/rfkill
(it's in /usr/sbin... )
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20120619/a39e203e/attachment-0002.sig>
More information about the Openembedded-devel
mailing list