[yocto] PACKAGECONFIG and related parameters
Diego
diego.ml at zoho.com
Wed Apr 30 08:25:10 PDT 2014
Hi Paul,
In data mercoledì 30 aprile 2014 10:57:18, Paul Eggleton ha scritto:
> Hi Diego,
>
> <snip>
>
> You can't do this with PACKAGECONFIG alone, you'd need to use Python, i.e.
> something like this:
>
> PACKAGECONFIG ?= "gl gles2"
> PACKAGECONFIG[gl] = "..."
> PACKAGECONFIG[gles2] = "..."
> ...
>
> python __anonymous() {
> packageconfig = (d.getVar("PACKAGECONFIG", True) or "").split()
> flavors = []
> if "gles2" in packageconfig:
> flavors.append("x11-gles2")
> if "gl" in packageconfig:
> flavors.append("x11-gl")
> if flavors:
> d.appendVar("EXTRA_OECONF", " --with-flavors=%s" %
> ",".join(flavors)) }
>
I tried that solution and it works, thank you so much.
For newcomers like me, this may help explaining how that works:
http://stackoverflow.com/a/17857952/813810
I'll do some testings and then I'll submit the patch for the new glmark
release.
Bests,
Diego
More information about the yocto
mailing list