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

Otavio Salvador otavio at ossystems.com.br
Tue May 28 07:30:59 PDT 2013


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

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130528/1e277ec5/attachment.html>


More information about the meta-freescale mailing list