@@ -70,12 +70,16 @@ EXTRA_OEMESON = "\
-Dman=false \
"
+# Select either wpa-supplicant or iwd
+WIRELESS_DAEMON ??= "wpa-supplicant"
+
PACKAGECONFIG ??= "readline nss ifupdown dnsmasq nmcli \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \
${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit ppp', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'gobject-introspection-data', 'vala', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', bb.utils.filter('WIRELESS_DAEMON', 'iwd', d), '', d)} \
"
inherit ${@bb.utils.contains('PACKAGECONFIG', 'vala', 'vala', '', d)}
Use the standard WIRELESS_DAEMON variable in the same way as recipes in oe-core so that networkmanager will automatically use iwd or wpa-supplicant depending on which is selected globally. This avoids installing two different wireless daemons as rdepends of networkmanager and packagegroup-base-wifi. Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> --- .../networkmanager/networkmanager_1.58.0.bb | 4 ++++ 1 file changed, 4 insertions(+)