[meta-freescale] [meta-fsl-arm][PATCH] gpu-viv-bin-mx6q: Make backend configurable

Otavio Salvador otavio at ossystems.com.br
Mon Feb 3 03:34:30 PST 2014


Hello Carlos,

On Mon, Feb 3, 2014 at 9:30 AM, Carlos Rafael Giani
<dv at pseudoterminal.org> wrote:
> On 2014-02-03 12:23, Otavio Salvador wrote:
>> On Mon, Feb 3, 2014 at 8:41 AM, Carlos Rafael Giani
>> <dv at pseudoterminal.org> wrote:
>>>
>>> With this change, the user can set USE_X11 etc. in local.conf to
>>> override the recipe's DISTRO_FEATURES based choice. This is for example
>>> beneficial when both X11 and wayland are supported, or when the user
>>> wants to make use of the regular framebuffer backend. (Modifying
>>> the distro features list may have far reaching consequences.)
>>>
>>> Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
>>
>> The Wayland and X11 backends  are not usable at same time as you need
>> to build apps with different flags. Do you have an usecase in mind?
>>
>
> For example, when I wanted to try out the framebuffer EGL backend of the
> eglvivsink element in gstreamer-imx , I had to modify the
> gpu-viv-bin-mx6q.inc file to force it to not install the X11 binaries. (Same
> when I tried to develop a directfb EGL backend, which I postponed for now,
> because there are zero docs and examples on how to actually do this.) I will
> also need it later, when I start working on the Wayland backend. I also
> needed it when trying to build an xbmc fork with imx extras ; it can only
> render to framebuffer, not to X11.
>
> I agree though that a switch-like statement would be better, but I am not
> sure how to implement that properly (my OE foo is not that high :) )

The idea here is you to set:

DISTRO_FEATURES_remove = "x11 wayland"

in your local.conf and you'll get a 'framebuffer' system.

Adding also:

DISTRO_FEATURES += "directfb"

gets you a 'DirectFB' system.

Is it what you are looking for?


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list