ell: remove unused patch
PATCH 1/3 ell: remove unused patch
Commit cc7bce67b ('ell: update to 0.8') removed the patch from SRC_URI but forgot to delete it from the git tree.
--- ...arp.h-from-libc-instead-of-linux-hea.patch | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch
meta-oe/recipes-core/ell/ell/0001-dhcp-include-if_arp.h-from-libc-instead-of-linux-hea.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From d8236d1d789f496a193dae5d2a15d706b81f6482 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> -Date: Thu, 12 Jul 2018 10:19:50 +0200 -Subject: [PATCH] dhcp: include if_arp.h from libc instead of linux headers -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit -To: [email protected] - -Compilation with musl libc fails due to redefinition of 'struct -arp{req,req_old,hdr}' in linux/if_arp.h, since it is already defined and -included in net/if_arp.h (through net/ethernet.h -> net/if_ether.h). - -The only symbols used from if_arp.h is ARPHRD_ETHER, so it should be -safe to avoid the compile error by including the if_arp.h header from -the c-library instead. - -Upstream-Status: Backport [https://lists.01.org/pipermail/ell/2018-July/001244.html] -Signed-off-by: Martin Hundebøll <[email protected]> ---- - ell/dhcp.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ell/dhcp.c b/ell/dhcp.c -index 6c90370..0d99f74 100644 ---- a/ell/dhcp.c -+++ b/ell/dhcp.c -@@ -27,7 +27,7 @@ - #include <netinet/ip.h> - #include <net/ethernet.h> - #include <linux/types.h> --#include <linux/if_arp.h> -+#include <net/if_arp.h> - #include <errno.h> - #include <time.h> - --- -2.18.0 -
Signature · 1 line
2.19.1
PATCH 2/3 ell: update to 0.15
---
meta-oe/recipes-core/ell/{ell_0.8.bb => ell_0.15.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-core/ell/{ell_0.8.bb => ell_0.15.bb} (88%)meta-oe/recipes-core/ell/ell_0.15.bb renamed from meta-oe/recipes-core/ell/ell_0.8.bb +1 -1
@@ -7,7 +7,7 @@ SECTION = "libs" inherit autotools pkgconfig S = "${WORKDIR}/git" -SRCREV = "d572281caedef357c392a7c9aa65a3b21a18cfdb" +SRCREV = "ea0f5f42e3af3fad2b60ee87719cdd227fd89ab0" SRC_URI = "git://git.kernel.org/pub/scm/libs/ell/ell.git" do_configure_prepend () {
Signature · 1 line
2.19.1
PATCH 3/3 iwd: add version 0.12
In reply to Martin HundebøllThe iwd wireless daemon is an alternative to wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).
--- meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bb
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +24 -0
@@ -0,0 +1,24 @@ +DESCRIPTION = "Wireless daemon for Linux" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" + +inherit autotools pkgconfig systemd + +DEPENDS = "ell readline dbus" + +SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git" +SRCREV = "d7609915db4b57229f7dd4c04b4eabcce637872a" +S = "${WORKDIR}/git" + +SYSTEMD_SERVICE_${PN} = "iwd.service" + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" + +EXTRA_OECONF += "--enable-external-ell" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +FILES_${PN} += "${datadir}/dbus-1"
Signature · 1 line
2.19.1
Re: [meta-oe][PATCH 3/3] iwd: add version 0.12
Quoted 23 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Martin Hundebøll
Sent: den 21 november 2018 09:10
To: [email protected]
Subject: [oe] [meta-oe][PATCH 3/3] iwd: add version 0.12The iwd wireless daemon is an alternative to
wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).Signed-off-by Martin Hundebøll <[email protected]>--- meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bbmeta- renamed from meta-oe/recipes-connectivity/iwd/iwd_0.12.bb +0
-0oe/recipes-connectivity/iwd/iwd_0.12.bb
new file mode 100644
index 000000000..a4261547e
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb line 7
Quoted 7 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +7
-0@@ -0,0 +1,24 @@ +DESCRIPTION = "Wireless daemon for Linux" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" + +inherit autotools pkgconfig systemd + +DEPENDS = "ell readline dbus"
Given that the readline library is GPLv3, it is probably a good idea to be able to disable the part that uses it. I.e., something like:
PACKAGECONFIG[client] = "--enable-client, --disable-client, readline,"
and add "client" to PACKAGECONFIG by default.
Quoted 18 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +17
-1+ +SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git" +SRCREV = "d7609915db4b57229f7dd4c04b4eabcce637872a" +S = "${WORKDIR}/git" + +SYSTEMD_SERVICE_${PN} = "iwd.service" + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" + +EXTRA_OECONF += "--enable-external-ell" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +FILES_${PN} += "${datadir}/dbus-1" --
Quoted 1 line
2.19.1
//Peter
Re: [meta-oe][PATCH 3/3] iwd: add version 0.12
In reply to Martin HundebøllQuoted 29 lines · Martin Hundebøll
The iwd wireless daemon is an alternative to
wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).Signed-off-by Martin Hundebøll <[email protected]>--- meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bbmeta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +14
-0@@ -0,0 +1,24 @@ +DESCRIPTION = "Wireless daemon for Linux" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" + +inherit autotools pkgconfig systemd + +DEPENDS = "ell readline dbus" + +SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git" +SRCREV = "d7609915db4b57229f7dd4c04b4eabcce637872a" +S = "${WORKDIR}/git" + +SYSTEMD_SERVICE_${PN} = "iwd.service" +
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb line 24
Quoted 10 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +10
-0+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG[systemd] = "--with-systemd-unitdir=${systemd_system_unitdir},--disable-systemd-service,systemd" + +EXTRA_OECONF += "--enable-external-ell" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +FILES_${PN} += "${datadir}/dbus-1"
I started a recipe for this but never got around to submitting it. You'll find it here:
I definitely think the PACKAGECONFIGs and ead.service need to be added before merging. The ptest stuff wasn't tested so I don't know how useful it was.
Ross
PATCH v2 1/1 iwd: add version 0.12
In reply to Martin HundebøllThe iwd wireless daemon is an alternative to wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).
---
Changes since v1:
- add packageconfig for client, ead, and ofono
- split out packages for iwctl, ead, and iwmon
- add ptest support
...ble-serial-tests-in-automake-to-supp.patch | 32 +++++++++ .../recipes-connectivity/iwd/iwd/run-ptest | 30 ++++++++ meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 68 +++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/run-ptest create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bb
meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 06a21885b89675ba094b573d5af8aa74729111d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 10:03:09 +0100 +Subject: [PATCH] configure.ac: enable serial-tests in automake to support + ptest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Martin Hundebøll <[email protected]> +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 8deb53a..1a5330b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,8 @@ AC_CONFIG_AUX_DIR(build-aux) + AC_CONFIG_MACRO_DIR(build-aux) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules +- tar-pax no-dist-gzip dist-xz]) ++ tar-pax no-dist-gzip dist-xz ++ serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-- +2.19.1 +
meta-oe/recipes-connectivity/iwd/iwd/run-ptest new file +30 -0
@@ -0,0 +1,30 @@ +#!/bin/sh + +run_test() { + test=$1 + name=$(basename $1) + + log=$(./$test) + res=$(echo $?) + + # check for skipped test + case "$log" in + *skipping*) + echo "SKIP: $name" + return + ;; + esac + + # check for passed / failed + if [[ "$res" -eq "0" ]]; then + echo "PASS: $name" + else + echo "FAIL: $name" + fi +} + +for path in tests/*; do + run_test $path +done + +exit 0
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.19.1
Re: [meta-oe][PATCHv2] iwd: add version 0.12
Quoted 1 line · Martin Hundebøll
+DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'readline', '', d)}"
Better to fix the makefile so it doesn't build the client test if the client is disabled?
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb line 12
Quoted 3 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +3
-0+SRC_URI = " \ + git://git.kernel.org/pub/scm/network/wireless/iwd.git \ + file://0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch \
Oh, I've a patch to automake to make this redundant. I'll dig it out and post to oe-core.
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb line 47
Quoted 8 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +8
-0+HAVE_SYSTEMD = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', True, False, d)}" + +# iwd service +SYSTEMD_SERVICE_${PN} = "${@'iwd.service' if bb.utils.to_boolean(d.getVar('HAVE_SYSTEMD')) else ''}" +FILES_${PN} += " \ + ${datadir}/dbus-1/system.d/iwd-dbus.conf \ + ${datadir}/dbus-1/system-services/net.connman.iwd.service \ +"
No need, if systemd is disabled then the class won't do anything.
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb line 53
Quoted 5 lines
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +5
-0+# iwctl tool +PN_CLIENT = "${@bb.utils.contains('PACKAGECONFIG', 'client', '${PN}-client', '', d)}" +RRECOMMENDS_${PN} += "${PN_CLIENT}" +PACKAGE_BEFORE_PN += "${PN_CLIENT}" +FILES_${PN}-client += "${bindir}/iwctl"
I'm generally against massively splitting up recipes in the name of modularity as it just complicates recipes. Unless there's a good reason I'd say just put the daemon, the client, and the extra parts (such as EAD) in the same package. It's not like anyone would want to install the client but not the daemon, or installing the client alongside the daemon would be a huge waste of space.
Ross
PATCH v2 1/1 iwd: add version 0.12
In reply to Martin HundebøllThe iwd wireless daemon is an alternative to wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).
---
Changes since v2:
- add patch to make client unit test depend on packageconfig
- remove split of packages
Changes since v1:
- add packageconfig for client, ead, and ofono
- split out packages for iwctl, ead, and iwmon
- add ptest support
...ient-unit-test-conditional-on-enable.patch | 59 +++++++++++++++++++ ...ble-serial-tests-in-automake-to-supp.patch | 32 ++++++++++ .../recipes-connectivity/iwd/iwd/run-ptest | 30 ++++++++++ meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 43 ++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/run-ptest create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bb
meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch new file +59 -0
@@ -0,0 +1,59 @@ +From b327b775db4e250d3448ab30ce97ca0acfea7603 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 14:31:11 +0100 +Subject: [PATCH] Makefile: make client unit test conditional on + --{enable,disable}-client +To: [email protected] + +The iwctl client and its unit test depends on readline. If building on a +host without readline installed, default make target succeeds when +configured with --disable-client, but the following make check target +fails. + +Fix this by making the test-client target conditional on the +--{enable,disable}-client configure flag. + +Upstream-Status: Submitted [https://lists.01.org/pipermail/iwd/2018-November/005178.html] +Signed-Off-By: Martin Hundebøll <[email protected]> + +--- + Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index db64c38..262e80d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -297,9 +297,11 @@ unit_tests = unit/test-cmac-aes \ + unit/test-crypto unit/test-eapol unit/test-mpdu \ + unit/test-ie unit/test-ssid-to-utf8 unit/test-ssid-security \ + unit/test-arc4 unit/test-wsc unit/test-eap-mschapv2 \ +- unit/test-eap-sim unit/test-client unit/test-ecc \ +- unit/test-sae ++ unit/test-eap-sim unit/test-ecc unit/test-sae + ++if CLIENT ++unit_tests += unit/test-client ++endif + + ell_pem_files = cert-ca-key.pem cert-client-key.pem cert-client-key-pkcs8.pem \ + cert-server-key.pem cert-server-key-pkcs8.pem \ +@@ -404,6 +406,7 @@ unit_test_eap_mschapv2_SOURCES = src/eap-mschapv2.h src/eap-mschapv2.c \ + unit/test-eap-mschapv2.c + unit_test_eap_mschapv2_LDADD = $(ell_ldadd) + ++if CLIENT + unit_test_client_SOURCES = unit/test-client.c \ + client/adapter.c \ + client/agent.h client/agent.c \ +@@ -414,6 +417,7 @@ unit_test_client_SOURCES = unit/test-client.c \ + client/network.h client/network.c \ + client/properties.h client/properties.c + unit_test_client_LDADD = $(ell_ldadd) -lreadline ++endif + + unit_test_ecc_SOURCES = unit/test-ecc.c src/ecc.c src/ecc.h + unit_test_ecc_LDADD = $(ell_ldadd) +-- +2.19.1 +
meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 06a21885b89675ba094b573d5af8aa74729111d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 10:03:09 +0100 +Subject: [PATCH] configure.ac: enable serial-tests in automake to support + ptest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Martin Hundebøll <[email protected]> +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 8deb53a..1a5330b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,8 @@ AC_CONFIG_AUX_DIR(build-aux) + AC_CONFIG_MACRO_DIR(build-aux) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules +- tar-pax no-dist-gzip dist-xz]) ++ tar-pax no-dist-gzip dist-xz ++ serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-- +2.19.1 +
meta-oe/recipes-connectivity/iwd/iwd/run-ptest new file +30 -0
@@ -0,0 +1,30 @@ +#!/bin/sh + +run_test() { + test=$1 + name=$(basename $1) + + log=$(./$test) + res=$(echo $?) + + # check for skipped test + case "$log" in + *skipping*) + echo "SKIP: $name" + return + ;; + esac + + # check for passed / failed + if [[ "$res" -eq "0" ]]; then + echo "PASS: $name" + else + echo "FAIL: $name" + fi +} + +for path in tests/*; do + run_test $path +done + +exit 0
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.19.1
Re: [meta-oe][PATCHv2] iwd: add version 0.12
Sorry, forgot to update patch version.
// Martin
Quoted 214 lines · Martin Hundebøll
The iwd wireless daemon is an alternative to
wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).Signed-off-by Martin Hundebøll <[email protected]>---
Changes since v2:
- add patch to make client unit test depend on packageconfig
- remove split of packagesChanges since v1:
- add packageconfig for client, ead, and ofono
- split out packages for iwctl, ead, and iwmon
- add ptest support...ient-unit-test-conditional-on-enable.patch | 59 +++++++++++++++++++ ...ble-serial-tests-in-automake-to-supp.patch | 32 ++++++++++ .../recipes-connectivity/iwd/iwd/run-ptest | 30 ++++++++++ meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 43 ++++++++++++++ 4 files changed, 164 insertions(+)create mode 100644
meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patchcreate mode 100644meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patchcreate mode 100644 meta-oe/recipes-connectivity/iwd/iwd/run-ptest
create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bbmeta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch new file +59
-0@@ -0,0 +1,59 @@ +From b327b775db4e250d3448ab30ce97ca0acfea7603 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 14:31:11 +0100 +Subject: [PATCH] Makefile: make client unit test conditional on + --{enable,disable}-client +To: [email protected] + +The iwctl client and its unit test depends on readline. If building on a +host without readline installed, default make target succeeds when +configured with --disable-client, but the following make check target +fails. + +Fix this by making the test-client target conditional on the +--{enable,disable}-client configure flag. + +Upstream-Status: Submitted [https://lists.01.org/pipermail/iwd/2018-November/005178.html] +Signed-Off-By: Martin Hundebøll <[email protected]> + +--- + Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index db64c38..262e80d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -297,9 +297,11 @@ unit_tests = unit/test-cmac-aes \ + unit/test-crypto unit/test-eapol unit/test-mpdu \ + unit/test-ie unit/test-ssid-to-utf8 unit/test-ssid-security \ + unit/test-arc4 unit/test-wsc unit/test-eap-mschapv2 \ +- unit/test-eap-sim unit/test-client unit/test-ecc \ +- unit/test-sae ++ unit/test-eap-sim unit/test-ecc unit/test-sae + ++if CLIENT ++unit_tests += unit/test-client ++endif + + ell_pem_files = cert-ca-key.pem cert-client-key.pem cert-client-key-pkcs8.pem \ + cert-server-key.pem cert-server-key-pkcs8.pem \ +@@ -404,6 +406,7 @@ unit_test_eap_mschapv2_SOURCES = src/eap-mschapv2.h src/eap-mschapv2.c \ + unit/test-eap-mschapv2.c + unit_test_eap_mschapv2_LDADD = $(ell_ldadd) + ++if CLIENT + unit_test_client_SOURCES = unit/test-client.c \ + client/adapter.c \ + client/agent.h client/agent.c \ +@@ -414,6 +417,7 @@ unit_test_client_SOURCES = unit/test-client.c \ + client/network.h client/network.c \ + client/properties.h client/properties.c + unit_test_client_LDADD = $(ell_ldadd) -lreadline ++endif + + unit_test_ecc_SOURCES = unit/test-ecc.c src/ecc.c src/ecc.h + unit_test_ecc_LDADD = $(ell_ldadd) +-- +2.19.1 +meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch new file +32
-0@@ -0,0 +1,32 @@ +From 06a21885b89675ba094b573d5af8aa74729111d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 10:03:09 +0100 +Subject: [PATCH] configure.ac: enable serial-tests in automake to support + ptest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Martin Hundebøll <[email protected]> +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 8deb53a..1a5330b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,8 @@ AC_CONFIG_AUX_DIR(build-aux) + AC_CONFIG_MACRO_DIR(build-aux) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules +- tar-pax no-dist-gzip dist-xz]) ++ tar-pax no-dist-gzip dist-xz ++ serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-- +2.19.1 +meta-oe/recipes-connectivity/iwd/iwd/run-ptest new file +30
-0@@ -0,0 +1,30 @@ +#!/bin/sh + +run_test() { + test=$1 + name=$(basename $1) + + log=$(./$test) + res=$(echo $?) + + # check for skipped test + case "$log" in + *skipping*) + echo "SKIP: $name" + return + ;; + esac + + # check for passed / failed + if [[ "$res" -eq "0" ]]; then + echo "PASS: $name" + else + echo "FAIL: $name" + fi +} + +for path in tests/*; do + run_test $path +done + +exit 0meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +43
-0@@ -0,0 +1,43 @@ +DESCRIPTION = "Wireless daemon for Linux" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" + +inherit autotools pkgconfig systemd ptest + +DEPENDS = "ell dbus" + +SRC_URI = " \ + git://git.kernel.org/pub/scm/network/wireless/iwd.git \ + file://0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch \ + file://0001-Makefile-make-client-unit-test-conditional-on-enable.patch \ + file://run-ptest \ +" +SRCREV = "d7609915db4b57229f7dd4c04b4eabcce637872a" +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= "client ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} wired ofono" +PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" +PACKAGECONFIG[systemd] = "--enable-systemd-service,--disable-systemd-service,systemd" +PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" +PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" + +EXTRA_OECONF += "--enable-external-ell" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +do_compile_ptest() { + oe_runmake buildtest-TESTS +} + +do_install_ptest() { + # remove intermediate object files + rm -f ${B}/unit/*.o + install -D -t ${D}${PTEST_PATH}/tests ${B}/unit/* +} + +# iwd service +SYSTEMD_SERVICE_${PN} = "iwd.service" +SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}" +FILES_${PN} += "${datadir}/dbus-1/"
Signature · 10 lines
Kind regards, Martin Hundebøll Embedded Linux Consultant +45 61 65 54 61 [email protected] Geanix IVS https://geanix.com DK39600706
PATCH v4 1/1 iwd: add version 0.12
In reply to Martin HundebøllThe iwd wireless daemon is an alternative to wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).
---
Changes since v3:
- Update patch upstream status to backport
Changes since v2:
- add patch to make client unit test depend on packageconfig
- remove split of packages
Changes since v1:
- add packageconfig for client, ead, and ofono
- split out packages for iwctl, ead, and iwmon
- add ptest support
...ient-unit-test-conditional-on-enable.patch | 59 +++++++++++++++++++ ...ble-serial-tests-in-automake-to-supp.patch | 32 ++++++++++ .../recipes-connectivity/iwd/iwd/run-ptest | 30 ++++++++++ meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 43 ++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/run-ptest create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bb
meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch new file +59 -0
@@ -0,0 +1,59 @@ +From b327b775db4e250d3448ab30ce97ca0acfea7603 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 14:31:11 +0100 +Subject: [PATCH] Makefile: make client unit test conditional on + --{enable,disable}-client +To: [email protected] + +The iwctl client and its unit test depends on readline. If building on a +host without readline installed, default make target succeeds when +configured with --disable-client, but the following make check target +fails. + +Fix this by making the test-client target conditional on the +--{enable,disable}-client configure flag. + +Upstream-Status: Backport [c4803d3b12010292d719cc3bcf694def5b6eeee8] +Signed-Off-By: Martin Hundebøll <[email protected]> + +--- + Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index db64c38..262e80d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -297,9 +297,11 @@ unit_tests = unit/test-cmac-aes \ + unit/test-crypto unit/test-eapol unit/test-mpdu \ + unit/test-ie unit/test-ssid-to-utf8 unit/test-ssid-security \ + unit/test-arc4 unit/test-wsc unit/test-eap-mschapv2 \ +- unit/test-eap-sim unit/test-client unit/test-ecc \ +- unit/test-sae ++ unit/test-eap-sim unit/test-ecc unit/test-sae + ++if CLIENT ++unit_tests += unit/test-client ++endif + + ell_pem_files = cert-ca-key.pem cert-client-key.pem cert-client-key-pkcs8.pem \ + cert-server-key.pem cert-server-key-pkcs8.pem \ +@@ -404,6 +406,7 @@ unit_test_eap_mschapv2_SOURCES = src/eap-mschapv2.h src/eap-mschapv2.c \ + unit/test-eap-mschapv2.c + unit_test_eap_mschapv2_LDADD = $(ell_ldadd) + ++if CLIENT + unit_test_client_SOURCES = unit/test-client.c \ + client/adapter.c \ + client/agent.h client/agent.c \ +@@ -414,6 +417,7 @@ unit_test_client_SOURCES = unit/test-client.c \ + client/network.h client/network.c \ + client/properties.h client/properties.c + unit_test_client_LDADD = $(ell_ldadd) -lreadline ++endif + + unit_test_ecc_SOURCES = unit/test-ecc.c src/ecc.c src/ecc.h + unit_test_ecc_LDADD = $(ell_ldadd) +-- +2.19.1 +
meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 06a21885b89675ba094b573d5af8aa74729111d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 10:03:09 +0100 +Subject: [PATCH] configure.ac: enable serial-tests in automake to support + ptest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Martin Hundebøll <[email protected]> +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 8deb53a..1a5330b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,8 @@ AC_CONFIG_AUX_DIR(build-aux) + AC_CONFIG_MACRO_DIR(build-aux) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules +- tar-pax no-dist-gzip dist-xz]) ++ tar-pax no-dist-gzip dist-xz ++ serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-- +2.19.1 +
meta-oe/recipes-connectivity/iwd/iwd/run-ptest new file +30 -0
@@ -0,0 +1,30 @@ +#!/bin/sh + +run_test() { + test=$1 + name=$(basename $1) + + log=$(./$test) + res=$(echo $?) + + # check for skipped test + case "$log" in + *skipping*) + echo "SKIP: $name" + return + ;; + esac + + # check for passed / failed + if [[ "$res" -eq "0" ]]; then + echo "PASS: $name" + else + echo "FAIL: $name" + fi +} + +for path in tests/*; do + run_test $path +done + +exit 0
meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.19.1
Re: [meta-oe][PATCHv4] iwd: add version 0.12
Hi Martin
I merged an older version of this patch. Can you please send a followup which addresses the changes up until v4 ?
Quoted 225 lines · Martin Hundebøll
The iwd wireless daemon is an alternative to
wpa_supplicant. It is controlled using the iwctl command line client (or the dbus interface).Signed-off-by Martin Hundebøll <[email protected]>---
Changes since v3:
- Update patch upstream status to backportChanges since v2:
- add patch to make client unit test depend on packageconfig
- remove split of packagesChanges since v1:
- add packageconfig for client, ead, and ofono
- split out packages for iwctl, ead, and iwmon
- add ptest support...ient-unit-test-conditional-on-enable.patch | 59 +++++++++++++++++++ ...ble-serial-tests-in-automake-to-supp.patch | 32 ++++++++++ .../recipes-connectivity/iwd/iwd/run-ptest | 30 ++++++++++ meta-oe/recipes-connectivity/iwd/iwd_0.12.bb | 43 ++++++++++++++ 4 files changed, 164 insertions(+) create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch create mode 100644 meta-oe/recipes-connectivity/iwd/iwd/run-ptest create mode 100644 meta-oe/recipes-connectivity/iwd/iwd_0.12.bbmeta-oe/recipes-connectivity/iwd/iwd/0001-Makefile-make-client-unit-test-conditional-on-enable.patch new file +59
-0@@ -0,0 +1,59 @@ +From b327b775db4e250d3448ab30ce97ca0acfea7603 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 14:31:11 +0100 +Subject: [PATCH] Makefile: make client unit test conditional on + --{enable,disable}-client +To: [email protected] + +The iwctl client and its unit test depends on readline. If building on a +host without readline installed, default make target succeeds when +configured with --disable-client, but the following make check target +fails. + +Fix this by making the test-client target conditional on the +--{enable,disable}-client configure flag. + +Upstream-Status: Backport [c4803d3b12010292d719cc3bcf694def5b6eeee8] +Signed-Off-By: Martin Hundebøll <[email protected]> + +--- + Makefile.am | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index db64c38..262e80d 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -297,9 +297,11 @@ unit_tests = unit/test-cmac-aes \ + unit/test-crypto unit/test-eapol unit/test-mpdu \ + unit/test-ie unit/test-ssid-to-utf8 unit/test-ssid-security \ + unit/test-arc4 unit/test-wsc unit/test-eap-mschapv2 \ +- unit/test-eap-sim unit/test-client unit/test-ecc \ +- unit/test-sae ++ unit/test-eap-sim unit/test-ecc unit/test-sae + ++if CLIENT ++unit_tests += unit/test-client ++endif + + ell_pem_files = cert-ca-key.pem cert-client-key.pem cert-client-key-pkcs8.pem \ + cert-server-key.pem cert-server-key-pkcs8.pem \ +@@ -404,6 +406,7 @@ unit_test_eap_mschapv2_SOURCES = src/eap-mschapv2.h src/eap-mschapv2.c \ + unit/test-eap-mschapv2.c + unit_test_eap_mschapv2_LDADD = $(ell_ldadd) + ++if CLIENT + unit_test_client_SOURCES = unit/test-client.c \ + client/adapter.c \ + client/agent.h client/agent.c \ +@@ -414,6 +417,7 @@ unit_test_client_SOURCES = unit/test-client.c \ + client/network.h client/network.c \ + client/properties.h client/properties.c + unit_test_client_LDADD = $(ell_ldadd) -lreadline ++endif + + unit_test_ecc_SOURCES = unit/test-ecc.c src/ecc.c src/ecc.h + unit_test_ecc_LDADD = $(ell_ldadd) +-- +2.19.1 +meta-oe/recipes-connectivity/iwd/iwd/0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch new file +32
-0@@ -0,0 +1,32 @@ +From 06a21885b89675ba094b573d5af8aa74729111d6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <[email protected]> +Date: Thu, 22 Nov 2018 10:03:09 +0100 +Subject: [PATCH] configure.ac: enable serial-tests in automake to support + ptest +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [OE-specific] +Signed-off-by: Martin Hundebøll <[email protected]> +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 8deb53a..1a5330b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,7 +6,8 @@ AC_CONFIG_AUX_DIR(build-aux) + AC_CONFIG_MACRO_DIR(build-aux) + + AM_INIT_AUTOMAKE([foreign subdir-objects color-tests silent-rules +- tar-pax no-dist-gzip dist-xz]) ++ tar-pax no-dist-gzip dist-xz ++ serial-tests]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +-- +2.19.1 +meta-oe/recipes-connectivity/iwd/iwd/run-ptest new file +30
-0@@ -0,0 +1,30 @@ +#!/bin/sh + +run_test() { + test=$1 + name=$(basename $1) + + log=$(./$test) + res=$(echo $?) + + # check for skipped test + case "$log" in + *skipping*) + echo "SKIP: $name" + return + ;; + esac + + # check for passed / failed + if [[ "$res" -eq "0" ]]; then + echo "PASS: $name" + else + echo "FAIL: $name" + fi +} + +for path in tests/*; do + run_test $path +done + +exit 0meta-oe/recipes-connectivity/iwd/iwd_0.12.bb new file +43
-1@@ -0,0 +1,43 @@ +DESCRIPTION = "Wireless daemon for Linux" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING;md5=fb504b67c50331fc78734fed90fb0e09" + +inherit autotools pkgconfig systemd ptest + +DEPENDS = "ell dbus" + +SRC_URI = " \ + git://git.kernel.org/pub/scm/network/wireless/iwd.git \ + file://0001-configure.ac-enable-serial-tests-in-automake-to-supp.patch \ + file://0001-Makefile-make-client-unit-test-conditional-on-enable.patch \ + file://run-ptest \ +" +SRCREV = "d7609915db4b57229f7dd4c04b4eabcce637872a" +S = "${WORKDIR}/git" + +PACKAGECONFIG ??= "client ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} wired ofono" +PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" +PACKAGECONFIG[systemd] = "--enable-systemd-service,--disable-systemd-service,systemd" +PACKAGECONFIG[wired] = "--enable-wired,--disable-wired" +PACKAGECONFIG[ofono] = "--enable-ofono,--disable-ofono" + +EXTRA_OECONF += "--enable-external-ell" + +do_configure_prepend () { + mkdir -p ${S}/build-aux +} + +do_compile_ptest() { + oe_runmake buildtest-TESTS +} + +do_install_ptest() { + # remove intermediate object files + rm -f ${B}/unit/*.o + install -D -t ${D}${PTEST_PATH}/tests ${B}/unit/* +} + +# iwd service +SYSTEMD_SERVICE_${PN} = "iwd.service" +SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'wired', 'ead.service', '', d)}" +FILES_${PN} += "${datadir}/dbus-1/" --2.19.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel