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

Richard Purdie richard.purdie at linuxfoundation.org
Thu Feb 13 15:27:17 UTC 2020


On Thu, 2020-02-13 at 10:22 -0500, Maxime Roussin-Bélanger wrote:
> On Thu, Feb 13, 2020 at 9:24 AM Richard Purdie <
> richard.purdie at linuxfoundation.org> wrote:
> > 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.

Correct.

> 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"

At this point it suggests they're not interchangeable and therefore not
simple runtime switchable dependencies.

The closest analogy is the "ld-is-gold" DISTRO_FEATURE when you have
something that isn't compatible like this.

Cheers,

Richard



More information about the Openembedded-core mailing list