blob: 1dfbed9fd48ad0655428b85d53c1fc7feec78179 [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
5inherit autotools pkgconfig systemd
6
7DEPENDS = "ell readline dbus"
8
9SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git"
10SRCREV = "f87159964cf8fd9f85b0699d50e4a051d4f7c948"
11S = "${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
29FILES_${PN} += "${datadir}/dbus-1"
30
31SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}"