diff options
author | Markus Volk <f_l_k@t-online.de> | 2022-08-30 15:52:05 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-01 10:14:01 +0100 |
commit | 1eaf64fbe16d2ceb472623c65c961b36aee33608 (patch) | |
tree | bcdd07beee68b8d8f9577a050d6b4ed7b987902b | |
parent | 924854accc46f254b6399fc3cf2613a6597410e3 (diff) | |
download | poky-1eaf64fbe16d2ceb472623c65c961b36aee33608.tar.gz |
packagegroup-base.bb: add a configure option to set the wireless-daemon
Possible options would be wpa-supplicant or iwd.
iwd is a wireless daemon written by intel and supported by all major network managers.
It can be run in standalone mode and configured with 'iwctl' from the terminal, and
with 'iwgtk' or 'iwdgui' from the gui. It can also work as a wpa_supplicant drop-in
replacement for network-manager, connman or systemd-networkd.
iwd makes heavy use of the kernel api, so it is not portable but does not need
additional external libraries like openssl.
The PACKAGECONFIG name for wpa-supplicant in the connman recipe is changed accordingly,
so that it also works there when WIRELESS_DAEMON is set globally.
(From OE-Core rev: c54f3847349173ed3a8e77a5c2732e1bbcddd540)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/connman/connman.inc | 8 | ||||
-rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-base.bb | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc index 9a518cdb2b..d7af94f792 100644 --- a/meta/recipes-connectivity/connman/connman.inc +++ b/meta/recipes-connectivity/connman/connman.inc | |||
@@ -29,9 +29,9 @@ EXTRA_OECONF += "\ | |||
29 | --disable-polkit \ | 29 | --disable-polkit \ |
30 | " | 30 | " |
31 | # For smooth operation it would be best to start only one wireless daemon at a time. | 31 | # For smooth operation it would be best to start only one wireless daemon at a time. |
32 | # If wpa_supplicant is running, connman will use it preferentially. | 32 | # If wpa-supplicant is running, connman will use it preferentially. |
33 | # Select either wpa_supplicant or iwd | 33 | # Select either wpa-supplicant or iwd |
34 | WIRELESS_DAEMON ??= "wpa_supplicant" | 34 | WIRELESS_DAEMON ??= "wpa-supplicant" |
35 | 35 | ||
36 | PACKAGECONFIG ??= "wispr iptables client\ | 36 | PACKAGECONFIG ??= "wispr iptables client\ |
37 | ${@bb.utils.filter('DISTRO_FEATURES', '3g systemd', d)} \ | 37 | ${@bb.utils.filter('DISTRO_FEATURES', '3g systemd', d)} \ |
@@ -47,7 +47,7 @@ PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_system_unitdir}/ --wit | |||
47 | PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi" | 47 | PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi" |
48 | PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, bluez5, bluez5" | 48 | PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, bluez5, bluez5" |
49 | PACKAGECONFIG[3g] = "--enable-ofono, --disable-ofono, ofono, ofono" | 49 | PACKAGECONFIG[3g] = "--enable-ofono, --disable-ofono, ofono, ofono" |
50 | PACKAGECONFIG[wpa_supplicant] = ",,wpa-supplicant,wpa-supplicant" | 50 | PACKAGECONFIG[wpa-supplicant] = ",,wpa-supplicant,wpa-supplicant" |
51 | PACKAGECONFIG[iwd] = "--enable-iwd,--disable-iwd,,iwd" | 51 | PACKAGECONFIG[iwd] = "--enable-iwd,--disable-iwd,,iwd" |
52 | PACKAGECONFIG[tist] = "--enable-tist,--disable-tist," | 52 | PACKAGECONFIG[tist] = "--enable-tist,--disable-tist," |
53 | PACKAGECONFIG[openvpn] = "--enable-openvpn --with-openvpn=${sbindir}/openvpn,--disable-openvpn,,openvpn" | 53 | PACKAGECONFIG[openvpn] = "--enable-openvpn --with-openvpn=${sbindir}/openvpn,--disable-openvpn,,openvpn" |
diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb index 7489ef61b0..d60e177471 100644 --- a/meta/recipes-core/packagegroups/packagegroup-base.bb +++ b/meta/recipes-core/packagegroups/packagegroup-base.bb | |||
@@ -267,11 +267,14 @@ RRECOMMENDS:packagegroup-base-ipsec = "\ | |||
267 | # packagegroup-base-wifi contain everything needed to get WiFi working | 267 | # packagegroup-base-wifi contain everything needed to get WiFi working |
268 | # WEP/WPA connection needs to be supported out-of-box | 268 | # WEP/WPA connection needs to be supported out-of-box |
269 | # | 269 | # |
270 | # Choose either 'wpa-supplicant' or 'iwd' as wireless-daemon | ||
271 | WIRELESS_DAEMON ??= "wpa-supplicant" | ||
270 | SUMMARY:packagegroup-base-wifi = "WiFi support" | 272 | SUMMARY:packagegroup-base-wifi = "WiFi support" |
271 | RDEPENDS:packagegroup-base-wifi = "\ | 273 | RDEPENDS:packagegroup-base-wifi = "\ |
272 | iw \ | 274 | iw \ |
273 | wireless-regdb-static \ | 275 | wireless-regdb-static \ |
274 | wpa-supplicant" | 276 | ${WIRELESS_DAEMON} \ |
277 | " | ||
275 | 278 | ||
276 | RRECOMMENDS:packagegroup-base-wifi = "\ | 279 | RRECOMMENDS:packagegroup-base-wifi = "\ |
277 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-zd1211rw', '',d)} \ | 280 | ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-zd1211rw', '',d)} \ |