Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Wireless daemon for Linux" |
| 2 | HOMEPAGE = "https://iwd.wiki.kernel.org/" |
| 3 | LICENSE = "LGPL-2.1" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" |
| 5 | |
| 6 | DEPENDS = "ell" |
| 7 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 8 | SRC_URI = "https://www.kernel.org/pub/linux/network/wireless/${BP}.tar.xz \ |
| 9 | file://0001-build-Use-abs_top_srcdir-instead-of-abs_srcdir-for-e.patch \ |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 10 | " |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "a7ab8e80592da5cb1a8b651b6d41e87e4507a3f07e04246e05bca89c547af659" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
| 13 | inherit autotools manpages pkgconfig python3native systemd |
| 14 | |
| 15 | PACKAGECONFIG ??= " \ |
| 16 | client \ |
| 17 | monitor \ |
| 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 19 | " |
| 20 | PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" |
| 21 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor" |
| 22 | PACKAGECONFIG[manpages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native" |
| 23 | PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" |
| 24 | PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" |
| 25 | PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" |
| 26 | |
| 27 | EXTRA_OECONF = "--enable-external-ell" |
| 28 | |
| 29 | SYSTEMD_SERVICE_${PN} = " \ |
| 30 | iwd.service \ |
| 31 | ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)} \ |
| 32 | " |
| 33 | |
| 34 | do_configure_prepend() { |
| 35 | install -d ${S}/build-aux |
| 36 | } |
| 37 | |
| 38 | do_install_append() { |
| 39 | # If client and monitor are disabled, bindir is empty, causing a QA error |
| 40 | rmdir --ignore-fail-on-non-empty ${D}/${bindir} |
| 41 | } |
| 42 | |
| 43 | FILES_${PN} += " \ |
| 44 | ${datadir}/dbus-1 \ |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 45 | ${nonarch_libdir}/modules-load.d \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | ${systemd_unitdir}/network \ |
| 47 | " |
| 48 | |
| 49 | RDEPENDS_${PN} = "dbus" |
| 50 | |
| 51 | RRECOMMENDS_${PN} = "\ |
| 52 | kernel-module-pkcs7-message \ |
| 53 | kernel-module-pkcs8-key-parser \ |
| 54 | kernel-module-x509-key-parser \ |
| 55 | " |