iwd: Update to 1.4
PATCH v2 1/4 iwd: Update to 1.4
dbus is not required to compile, but is expected at run time. Move it to RDEPENDS.
Backport a patch from upstream to fix build using musl. rawmemchr is a GNU extension that is not supported in musl.
From upstream changelog:
ver 1.4:
Fix issue with handling Crypto-Binding and invalid MACs. Fix issue with handling change station error results. Fix issue with handling DNS resolving installations.
ver 1.3:
Fix issue with handling EAP-GTC and password requests. Fix issue with handling Crypto-Binding TLV for PEAPv0. Fix issue with handling key installation and PEAP Phase 2. Fix issue with handling externally triggered scan requests. Fix issue with handling RCPI calculation for RRM requests.
ver 1.2:
Fix issue with handling scan requests while connecting. Fix issue with handling scan duration for RRM requests. Fix issue with handling parent TSF value for RRM requests.
ver 1.1:
Fix issue with simple configuration support checks. Fix issue with handling TLS tunnel and PEAPv0. Add support for radio resource management.
---
...d-redirection-of-input-and-output-fi.patch | 12 ++--
...0001-build-Support-missing-rawmemchr.patch | 62 +++++++++++++++++++
.../iwd/{iwd_1.0.bb => iwd_1.4.bb} | 7 ++-
3 files changed, 72 insertions(+), 9 deletions(-)
create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-build-Support-missing-rawmemchr.patch
rename meta-oe/recipes-connectivity/iwd/{iwd_1.0.bb => iwd_1.4.bb} (86%)meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch +5 -7
@@ -1,4 +1,4 @@ -From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00 2001 +From 46fc0e197598579dc05e42f137e84f86a9b926e9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 4 Nov 2019 16:38:04 -0800 Subject: [PATCH] Makefile.am: Avoid redirection of input and output files
@@ -15,26 +15,24 @@ make[1]: *** [Makefile:3544: monitor/iwmon.1] Error 1 Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> + --- Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am -index 823b7d02..1bd0005c 100644 +index 8c69d9f4..35a25fc0 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ +@@ -629,8 +629,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ < $< > $@ if RUN_RST2MAN -RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \ -- --no-datestamp < $< > $@ +- --no-datestamp $< $@ +RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ + $(AM_V_GEN)$(RST2MAN) --strict --no-raw \ + --no-generator --no-datestamp $< $@ else RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \ { echo "Generated manual page $@ does not exist"; false; } --- -2.24.0 -
meta-oe/recipes-connectivity/iwd/iwd/0001-build-Support-missing-rawmemchr.patch new file +62 -0
62 lines not on this page · raw message
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb renamed from meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +5 -2
@@ -4,12 +4,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" inherit autotools pkgconfig systemd python3native -DEPENDS = "ell readline dbus python3-docutils-native" +DEPENDS = "ell readline python3-docutils-native" SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ + file://0001-build-Support-missing-rawmemchr.patch \ " -SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db" +SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" S = "${WORKDIR}/git" PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
@@ -32,6 +33,8 @@ FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_uni SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}" +RDEPENDS_${PN} = "dbus" + RRECOMMENDS_${PN} = "\ kernel-module-pkcs7-message \ kernel-module-pkcs8-key-parser \
Signature · 1 line
2.24.1
PATCH v2 2/4 iwd: Add PACKAGECONFIG options
Make it easier to disable optional client, monitor, and man page components and their dependencies. A user may want to disable the client to avoid the use of GPLv3 readline.
--- meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +12 -2
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" inherit autotools pkgconfig systemd python3native -DEPENDS = "ell readline python3-docutils-native" +DEPENDS = "ell" SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
@@ -13,7 +13,15 @@ SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" S = "${WORKDIR}/git" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ??= " \ + client \ + monitor \ + manual-pages \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ +" +PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" +PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor" +PACKAGECONFIG[manual-pages] = "--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"
@@ -27,6 +35,8 @@ do_configure_prepend () { do_install_append() { mkdir --parents ${D}${docdir}/${BPN} install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN} + # If client and monitor are disabled, bindir is empty, causing a QA error + rmdir --ignore-fail-on-non-empty ${D}/${bindir} } FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/"
Signature · 1 line
2.24.1
PATCH v2 3/4 iwd: Use manpages class to control documentation
In reply to Robert JoslynThis class allows the api-documentation distro feature to control man page generation. Remove copying all .txt files from ${S}/doc since these are developer documents and wouldn't be of any use to users on the target device.
--- meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +2 -5
@@ -2,7 +2,7 @@ DESCRIPTION = "Wireless daemon for Linux" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" -inherit autotools pkgconfig systemd python3native +inherit autotools manpages pkgconfig systemd python3native DEPENDS = "ell"
@@ -16,12 +16,11 @@ S = "${WORKDIR}/git" PACKAGECONFIG ??= " \ client \ monitor \ - manual-pages \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ " PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor" -PACKAGECONFIG[manual-pages] = "--enable-manual-pages,--disable-manual-pages,python3-docutils-native" +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"
@@ -33,8 +32,6 @@ do_configure_prepend () { } do_install_append() { - mkdir --parents ${D}${docdir}/${BPN} - install -m644 ${S}/doc/*.txt ${D}${docdir}/${BPN} # If client and monitor are disabled, bindir is empty, causing a QA error rmdir --ignore-fail-on-non-empty ${D}/${bindir} }
Signature · 1 line
2.24.1
PATCH v2 4/4 iwd: Update formatting
In reply to Robert JoslynTry to conform better to the style guide.
--- meta-oe/recipes-connectivity/iwd/iwd_1.4.bb | 35 +++++++++++++-------- 1 file changed, 22 insertions(+), 13 deletions(-)
meta-oe/recipes-connectivity/iwd/iwd_1.4.bb +22 -13
@@ -1,18 +1,20 @@ -DESCRIPTION = "Wireless daemon for Linux" +SUMMARY = "Wireless daemon for Linux" +HOMEPAGE = "https://iwd.wiki.kernel.org/" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" -inherit autotools manpages pkgconfig systemd python3native - DEPENDS = "ell" -SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ - file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ - file://0001-build-Support-missing-rawmemchr.patch \ - " +SRC_URI = " \ + git://git.kernel.org/pub/scm/network/wireless/iwd.git \ + file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ + file://0001-build-Support-missing-rawmemchr.patch \ +" SRCREV = "860fa4697f349da7791ecf22ca76f9ac0e5de261" S = "${WORKDIR}/git" +inherit autotools manpages pkgconfig python3native systemd + PACKAGECONFIG ??= " \ client \ monitor \
@@ -25,10 +27,15 @@ 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" +EXTRA_OECONF = "--enable-external-ell" -do_configure_prepend () { - mkdir -p ${S}/build-aux +SYSTEMD_SERVICE_${PN} = " \ + iwd.service \ + ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)} \ +" + +do_configure_prepend() { + install -d ${S}/build-aux } do_install_append() {
@@ -36,9 +43,11 @@ do_install_append() { rmdir --ignore-fail-on-non-empty ${D}/${bindir} } -FILES_${PN} += "${datadir}/dbus-1 ${nonarch_libdir}/modules-load.d ${systemd_unitdir}/network/" - -SYSTEMD_SERVICE_${PN} = "iwd.service ${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}" +FILES_${PN} += " \ + ${datadir}/dbus-1 \ + ${nonarch_libdir}/modules-load.d \ + ${systemd_unitdir}/network \ +" RDEPENDS_${PN} = "dbus"
Signature · 1 line
2.24.1