All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES
Date: Tue, 28 May 2013 16:34:52 +0200	[thread overview]
Message-ID: <20130528163452.44db4ec4@e6520eb> (raw)
In-Reply-To: <CAP9ODKrZg+=bZ3LB_J+aup3RbMPm+pGo31SL3Uz3N4rz+_A5zg@mail.gmail.com>

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

> On Mon, May 27, 2013 at 9:02 PM, Eric Bénard <eric@eukrea.com> wrote:
> 
> > this prevent warnings and parse errors
> >
> > Signed-off-by: Eric Bénard <eric@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


  reply	other threads:[~2013-05-28 14:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-28  0:02 [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28  0:02 ` [meta-fsl-arm][PATCH RFC 2/4] amd-gpu-bin-mx51: new recipe Eric Bénard
2013-05-28 13:11   ` Otavio Salvador
2013-05-28  0:02 ` [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES Eric Bénard
2013-05-28 14:30   ` Otavio Salvador
2013-05-28 14:34     ` Eric Bénard [this message]
2013-05-28  0:02 ` [meta-fsl-arm][PATCH RFC 4/4] amd-gpu*: factorize the recipes Eric Bénard
2013-05-28 13:16   ` Otavio Salvador
2013-05-28  0:08 ` [meta-fsl-arm][PATCH RFC 1/4] qt5: add mx5 and mx6 support Eric Bénard
2013-05-28 13:29 ` Otavio Salvador
2013-05-28 13:38   ` Eric Bénard
2013-05-30 15:26   ` Chris Larson
2013-05-31  6:53     ` Erik Botö
2013-05-31 12:37     ` Otavio Salvador
2013-05-31 13:27       ` Chris Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130528163452.44db4ec4@e6520eb \
    --to=eric@eukrea.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=otavio@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.