blob: c9c0738abecb129b40c5f1570178dd50cba5f39d [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Radio enable/disable command line utility"
2HOMEPAGE = "http://linuxwireless.org/en/users/Documentation/rfkill"
3SECTION = "base"
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "0BSD"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005LIC_FILES_CHKSUM = "file://COPYING;md5=c6036d0eb7edbfced28c4160e5d3fa94"
6
Andrew Geissler97771a32021-03-05 15:23:11 -06007SRC_URI = "http://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008 file://0001-rfkill-makefile-don-t-use-t-the-OE-install-wrapper-d.patch \
9 file://dont.call.git.rev-parse.on.parent.dir.patch"
10
Andrew Geissler97771a32021-03-05 15:23:11 -060011SRC_URI[sha256sum] = "dffc631c611520478b8a286f57c67a35e8cb5802d376c6ca13b057365432389c"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13do_compile() {
14 oe_runmake
15}
16
17do_install() {
18 oe_runmake DESTDIR=${D} install
19}
20
21inherit update-alternatives
22
Patrick Williams213cb262021-08-07 19:21:33 -050023ALTERNATIVE:${PN} = "rfkill"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050024ALTERNATIVE_PRIORITY = "60"
25ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill"