From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0E103E01458 for ; Tue, 28 May 2013 07:35:00 -0700 (PDT) Received: from e6520eb (pac33-2-82-240-38-71.fbx.proxad.net [82.240.38.71]) (Authenticated sender: eukrea) by smtp2-g21.free.fr (Postfix) with ESMTPSA id DFC6A4B00EC; Tue, 28 May 2013 16:34:53 +0200 (CEST) Date: Tue, 28 May 2013 16:34:52 +0200 From: Eric =?UTF-8?B?QsOpbmFyZA==?= To: Otavio Salvador Message-ID: <20130528163452.44db4ec4@e6520eb> In-Reply-To: References: <1369699372-1398-1-git-send-email-eric@eukrea.com> <1369699372-1398-3-git-send-email-eric@eukrea.com> Organization: =?UTF-8?B?RXVrcsOpYQ==?= Electromatique X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.16; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Cc: "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 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 14:35:02 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Tue, 28 May 2013 11:30:59 -0300, Otavio Salvador a =C3=A9crit : > On Mon, May 27, 2013 at 9:02 PM, Eric B=C3=A9nard wrote: >=20 > > this prevent warnings and parse errors > > > > Signed-off-by: Eric B=C3=A9nard > > >=20 > -COMPATIBLE_MACHINE =3D "(mx5)" > +COMPATIBLE_MACHINE =3D "{@base_contains('DISTRO_FEATURES', 'x11', (mx5),= '', > d)}" >=20 > Something like: >=20 > python __anonymous () { >=20 >=20 > distro_features =3D d.getVar('DISTRO_FEATURES', True).split() >=20 >=20 > if 'x11' not in distro_features: >=20 >=20 > raise bb.parse.SkipPackage('missing required "x11" distro feature= ') >=20 >=20 > } >=20 >=20 >=20 > could be used so I think you don't need to handle distro feature twice > (compat machine and depends). >=20 will try, in fact I think only COMPATIBLE_MACHINE is needed. Eric