blob: dbcc319dcc2597764c03371597c5919c02ede231 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Wireless daemon for Linux"
2HOMEPAGE = "https://iwd.wiki.kernel.org/"
3LICENSE = "LGPL-2.1"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
5
6DEPENDS = "ell"
7
Andrew Geisslerf103a7f2021-05-07 16:09:40 -05008SRC_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 Geisslerac970dd2021-02-12 15:32:45 -060010 "
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070011SRC_URI[sha256sum] = "21be6ad59ba666ba1e50e01889d647472b9b2f96f4941123db036fd33c257f0b"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
13inherit autotools manpages pkgconfig python3native systemd
14
15PACKAGECONFIG ??= " \
16 client \
17 monitor \
18 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
19"
20PACKAGECONFIG[client] = "--enable-client,--disable-client,readline"
21PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor"
22PACKAGECONFIG[manpages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native"
23PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
24PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
25PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
26
27EXTRA_OECONF = "--enable-external-ell"
28
29SYSTEMD_SERVICE_${PN} = " \
30 iwd.service \
31 ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)} \
32"
33
34do_configure_prepend() {
35 install -d ${S}/build-aux
36}
37
38do_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
43FILES_${PN} += " \
44 ${datadir}/dbus-1 \
Andrew Geisslerd688a012020-09-18 13:36:00 -050045 ${nonarch_libdir}/modules-load.d \
Andrew Geissler82c905d2020-04-13 13:39:40 -050046 ${systemd_unitdir}/network \
47"
48
49RDEPENDS_${PN} = "dbus"
50
51RRECOMMENDS_${PN} = "\
52 kernel-module-pkcs7-message \
53 kernel-module-pkcs8-key-parser \
54 kernel-module-x509-key-parser \
55"