[OE-core] [PATCH] wpa-supplicant: add virtual supplicant

Maxime Roussin-Bélanger maxime.roussinbelanger at gmail.com
Mon Feb 10 21:42:11 UTC 2020


There is a second supplicant raising, iwd. User should be
able to switch between wpa-supplicant and iwd. Let's provide
a virtual package.

ConnMan, systemd-networkd and NetworkManager supports iwd.

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger at gmail.com>
---
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb | 3 +++
 meta/recipes-core/packagegroups/packagegroup-base.bb           | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb
index 2db09ad2c6..270e14eeb3 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.9.bb
@@ -15,6 +15,9 @@ PACKAGECONFIG[openssl] = ",,openssl"
 
 inherit pkgconfig systemd
 
+PROVIDES = "virtual/supplicant"
+RPROVIDES_${PN} += "virtual/supplicant"
+
 SYSTEMD_SERVICE_${PN} = "wpa_supplicant.service wpa_supplicant-nl80211 at .service wpa_supplicant-wired at .service"
 SYSTEMD_AUTO_ENABLE = "disable"
 
diff --git a/meta/recipes-core/packagegroups/packagegroup-base.bb b/meta/recipes-core/packagegroups/packagegroup-base.bb
index 1f802da09b..911877cf0a 100644
--- a/meta/recipes-core/packagegroups/packagegroup-base.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-base.bb
@@ -270,7 +270,7 @@ SUMMARY_packagegroup-base-wifi = "WiFi support"
 RDEPENDS_packagegroup-base-wifi = "\
     iw \
     wireless-regdb-static \
-    wpa-supplicant"
+    virtual/supplicant"
 
 RRECOMMENDS_packagegroup-base-wifi = "\
     ${@bb.utils.contains('COMBINED_FEATURES', 'usbhost', 'kernel-module-zd1211rw', '',d)} \
-- 
2.20.1



More information about the Openembedded-core mailing list