Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Radio enable/disable command line utility" |
| 2 | HOMEPAGE = "http://linuxwireless.org/en/users/Documentation/rfkill" |
| 3 | SECTION = "base" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame] | 4 | LICENSE = "BSD-0-Clause" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c6036d0eb7edbfced28c4160e5d3fa94" |
| 6 | |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 7 | SRC_URI = "http://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | 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 Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "dffc631c611520478b8a286f57c67a35e8cb5802d376c6ca13b057365432389c" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | |
| 13 | do_compile() { |
| 14 | oe_runmake |
| 15 | } |
| 16 | |
| 17 | do_install() { |
| 18 | oe_runmake DESTDIR=${D} install |
| 19 | } |
| 20 | |
| 21 | inherit update-alternatives |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 23 | ALTERNATIVE:${PN} = "rfkill" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | ALTERNATIVE_PRIORITY = "60" |
| 25 | ALTERNATIVE_LINK_NAME[rfkill] = "${sbindir}/rfkill" |