2020-07-08 14:42:25 +00:00
|
|
|
SUMMARY = "Wireless daemon for Linux"
|
|
|
|
HOMEPAGE = "https://iwd.wiki.kernel.org/"
|
2022-05-28 15:20:07 +00:00
|
|
|
LICENSE = "LGPL-2.1-only"
|
2020-07-08 14:42:25 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09"
|
|
|
|
|
|
|
|
DEPENDS = "ell"
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
SRC_URI = "https://www.kernel.org/pub/linux/network/wireless/${BP}.tar.xz \
|
|
|
|
file://0001-build-Use-abs_top_srcdir-instead-of-abs_srcdir-for-e.patch \
|
2022-05-29 18:18:27 +00:00
|
|
|
"
|
|
|
|
SRC_URI[sha256sum] = "013b4a0a79629c20d915954fc3b5d0620ef6e0d6065db3c342f4b3f9111f46ec"
|
2020-07-08 14:42:25 +00:00
|
|
|
|
|
|
|
inherit autotools manpages pkgconfig python3native systemd
|
|
|
|
|
|
|
|
PACKAGECONFIG ??= " \
|
|
|
|
client \
|
|
|
|
monitor \
|
|
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
|
|
|
"
|
|
|
|
PACKAGECONFIG[client] = "--enable-client,--disable-client,readline"
|
|
|
|
PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor"
|
|
|
|
PACKAGECONFIG[manpages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native"
|
|
|
|
PACKAGECONFIG[wired] = "--enable-wired,--disable-wired"
|
|
|
|
PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono"
|
|
|
|
PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd"
|
|
|
|
|
|
|
|
EXTRA_OECONF = "--enable-external-ell"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
SYSTEMD_SERVICE:${PN} = " \
|
2020-07-08 14:42:25 +00:00
|
|
|
iwd.service \
|
|
|
|
${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)} \
|
|
|
|
"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
do_configure:prepend() {
|
2020-07-08 14:42:25 +00:00
|
|
|
install -d ${S}/build-aux
|
|
|
|
}
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
do_install:append() {
|
2020-07-08 14:42:25 +00:00
|
|
|
# If client and monitor are disabled, bindir is empty, causing a QA error
|
|
|
|
rmdir --ignore-fail-on-non-empty ${D}/${bindir}
|
|
|
|
}
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
FILES:${PN} += " \
|
2020-07-08 14:42:25 +00:00
|
|
|
${datadir}/dbus-1 \
|
|
|
|
${nonarch_libdir}/modules-load.d \
|
|
|
|
${systemd_unitdir}/network \
|
|
|
|
"
|
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
RDEPENDS:${PN} = "dbus"
|
2020-07-08 14:42:25 +00:00
|
|
|
|
2022-05-28 15:20:07 +00:00
|
|
|
RRECOMMENDS:${PN} = "\
|
2020-07-08 14:42:25 +00:00
|
|
|
kernel-module-pkcs7-message \
|
|
|
|
kernel-module-pkcs8-key-parser \
|
|
|
|
kernel-module-x509-key-parser \
|
|
|
|
"
|