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

Maxime Roussin-Bélanger maxime.roussinbelanger at gmail.com
Thu Feb 13 15:22:13 UTC 2020


On Thu, Feb 13, 2020 at 9:24 AM Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:
>
> On Mon, 2020-02-10 at 16:42 -0500, Maxime Roussin-Bélanger wrote:
> > 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(-)
>
> I know its not easy to understand but we don't support virtual/* names
> in the runtime namespace, only the build time one (PROVIDES/DEPENDS).
>
> Grep for VIRTUAL-RUNTIME to see how we handle this (its ugly I know).

Hmm interesting!

If I follow correctly that's mean I have to create:

VIRTUAL-RUNTIME_wireless-daemon and then people can override it.

If the (R)DEPENDS on a recipe change depending on the wireless daemon that
was chosen(i.e. connman), do you handle it with d.getVar and
d.setVar("DEPENDS... inside a
anonymous python function inside the recipe?

The packageconfig would like this ?

PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi,
${VIRTUAL-RUNTIME_wireless-daemon}, ${VIRTUAL-RUNTIME_wireless-daemon}"

Example:

if VIRTUAL-RUNTIME_wireless-daemon == "iwd":
    DEPENDS += "iwd"
    EXTRA_OECONF += "--enable-iwd"
elif VIRTUAL-RUNTIME_wireless-daemon == "wpa-supplicant":
    DEPENDS += "wpa-supplicant"


Thanks,
Max.

>
> Cheers,
>
> Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20200213/ac230508/attachment.html>


More information about the Openembedded-core mailing list