[meta-freescale] [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES

Eric Bénard eric at eukrea.com
Tue May 28 07:34:52 PDT 2013


Le Tue, 28 May 2013 11:30:59 -0300,
Otavio Salvador <otavio at ossystems.com.br> a écrit :

> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric at eukrea.com> wrote:
> 
> > this prevent warnings and parse errors
> >
> > Signed-off-by: Eric Bénard <eric at eukrea.com>
> >
> 
>  -COMPATIBLE_MACHINE = "(mx5)"
> +COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '',
> d)}"
> 
> Something like:
> 
> python __anonymous () {
> 
> 
>     distro_features = d.getVar('DISTRO_FEATURES', True).split()
> 
> 
>     if 'x11' not in distro_features:
> 
> 
>         raise bb.parse.SkipPackage('missing required "x11" distro feature')
> 
> 
> }
> 
> 
> 
> could be used so I think you don't need to handle distro feature twice
> (compat machine and depends).
> 
will try, in fact I think only COMPATIBLE_MACHINE is needed.

Eric



More information about the meta-freescale mailing list