blob: 20c6d04f7afc357a67defefc5d4df2f2fce64e91 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001DESCRIPTION = "Wireless daemon for Linux"
2LICENSE = "LGPL-2.1"
3LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
4
Brad Bishop868407c2019-11-04 13:24:47 -05005inherit autotools pkgconfig systemd python3native
Brad Bishop19323692019-04-05 15:28:33 -04006
Brad Bishop868407c2019-11-04 13:24:47 -05007DEPENDS = "ell readline dbus python3-docutils-native"
Brad Bishop19323692019-04-05 15:28:33 -04008
9SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git"
Brad Bishop868407c2019-11-04 13:24:47 -050010SRCREV = "77f16ae26fc013477f6362a0c33f0e52e82863e0"
Brad Bishop19323692019-04-05 15:28:33 -040011S = "${WORKDIR}/git"
12
13PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
14PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
15PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
16PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
17
18EXTRA_OECONF += "--enable-external-ell"
19
20do_configure_prepend () {
21 mkdir -p ${S}/build-aux
22}
23
24do_install_append() {
25 mkdir --parents ${D}${docdir}/${BPN}
26 install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
27}
28
Brad Bishop26bdd442019-08-16 17:08:17 -040029FILES_${PN} += "${datadir}/dbus-1 ${libdir}/modules-load.d"
Brad Bishop19323692019-04-05 15:28:33 -040030
31SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"
Brad Bishop26bdd442019-08-16 17:08:17 -040032
33RRECOMMENDS_${PN} = "\
34 kernel-module-pkcs7-message \
35 kernel-module-pkcs8-key-parser \
36 kernel-module-x509-key-parser \
37"