[OE-core] OpenGL as a DISTRO_FEATURE

Ian Geiser igeiser at devonit.com
Mon Feb 4 00:53:42 UTC 2013


> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org
> [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of
> Marcin Juszkiewicz
> Sent: Sunday, February 03, 2013 4:34 PM
> To: openembedded-core at lists.openembedded.org
> Subject: Re: [OE-core] OpenGL as a DISTRO_FEATURE
> 
> W dniu 03.02.2013 20:45, Ian Geiser pisze:
> 
> > The case I have is 3 platforms: 1) Atom N450 2) WM 8950 3) VIA VX900
> >
> > The Atom has the normal mesa-dri drivers and can use the OpenGL
> > implementation from that.  The WM has only OpenGLES drivers and no
> > OpenGL implementation.  So in that case I want to use only GLES
> > support in the various packages that conditionally support it (in my
> > case Qt4).  The last platform the VIA has its own OpenGL
> > implementation that can completely replace mesa for packages that
> > support OpenGL. In the case of my distro I support Qt4 but it can use
> > OpenGLES or OpenGL.  The problem comes in when I start setting
> > preferred providers in the machine conf files.  In the case of my WM,
> > I have only gles and since the distro supports opengl, it needs a
> > virtual/libgl and finds it with mesa.  Now I can remove opengl from
> > my distro, but the Atom and VIA support opengl, and will not have it
> > available to Qt because it turns off.
> 
> As they are different architectures you can try this:
> 
> DISTRO_FEATURES_wm8950 = "here copy your default DISTRO_FEATURES but
> skip opengl"
> 
> Replace wm8950 with MACHINE name. Ugly solution but should work.
Then I have 3 DISTRO_FEATURES lines in my distro.conf, or I have DISTRO_FEATURES spread out inside of my machine.conf files.  Ugly solutions ship, but elegant solutions get maintained ;)






More information about the Openembedded-core mailing list