Hi Diego, On Wednesday 30 April 2014 11:05:45 Diego wrote: > > I'd like to update the glmark2 recipe: > > http://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-benchma > > rk /glmark2/glmark2_2012.12.bb to latest upstream version. > > > > The problem is the configure step is done with: > > ./waf configure --with-flavors=x11-gl,x11-glesv2 > > instead of the previous release's syntax: > > ./waf configure --enable-gl --enable-glesv2 > > Unfortunately: > > ./waf configure --with-flavors=x11-gl --with-flavors=x11-glesv2 > > is not an accepted syntax. > > > > How can I express the PACKAGECONFIG[...] parameters, so that if both gl > > and > > gles2 are present I obtain "--with-flavors=x11-gl,x11-glesv2" as the > > configure parameter? > > Hi, > > Can anybody help me with that?
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)) } Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto