blob: cc34ca2215dd6ac494b3728d39d740055cbfbad1 [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
Brad Bishop2f973922019-11-11 07:58:48 -05009SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
10 file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
11 "
12SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
Brad Bishop19323692019-04-05 15:28:33 -040013S = "${WORKDIR}/git"
14
15PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
16PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
17PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
18PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
19
20EXTRA_OECONF += "--enable-external-ell"
21
22do_configure_prepend () {
23 mkdir -p ${S}/build-aux
24}
25
26do_install_append() {
27 mkdir --parents ${D}${docdir}/${BPN}
28 install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN}
29}
30
Brad Bishope42b3e32020-01-15 22:08:42 -050031FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/"
Brad Bishop19323692019-04-05 15:28:33 -040032
33SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"
Brad Bishop26bdd442019-08-16 17:08:17 -040034
35RRECOMMENDS_${PN} = "\
36 kernel-module-pkcs7-message \
37 kernel-module-pkcs8-key-parser \
38 kernel-module-x509-key-parser \
39"