On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <[email protected]> wrote:

> this prevent warnings and parse errors
>
> Signed-off-by: Eric Bénard <[email protected]>
>

 -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).

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to