From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.bemta8.messagelabs.com (mail1.bemta8.messagelabs.com [216.82.243.208]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 34DC0E01439 for ; Thu, 30 May 2013 02:49:56 -0700 (PDT) Received: from [216.82.241.196:22041] by server-16.bemta-8.messagelabs.com id 0C/C0-09528-2C027A15; Thu, 30 May 2013 09:49:54 +0000 X-Env-Sender: Javier.Viguera@digi.com X-Msg-Ref: server-5.tower-46.messagelabs.com!1369907394!28254603!1 X-Originating-IP: [66.77.174.14] X-StarScan-Received: X-StarScan-Version: 6.9.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6827 invoked from network); 30 May 2013 09:49:54 -0000 Received: from mail.mx2.digi.com (HELO mcl-sms-ns2.DIGI.COM) (66.77.174.14) by server-5.tower-46.messagelabs.com with RC4-SHA encrypted SMTP; 30 May 2013 09:49:54 -0000 Received: from MTK-SMS-XCH03.digi.com (10.10.8.197) by mail.mx2.digi.com (172.16.1.14) with Microsoft SMTP Server (TLS) id 8.3.298.1; Thu, 30 May 2013 04:49:35 -0500 Received: from dor-sms-exch01.digi.com (10.49.8.100) by MTK-SMS-XCH03.digi.com (10.10.8.197) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 30 May 2013 04:49:47 -0500 Received: from [10.101.1.79] (10.101.1.79) by dor-sms-exch01.digi.com (10.49.8.100) with Microsoft SMTP Server (TLS) id 8.3.298.1; Thu, 30 May 2013 11:49:45 +0200 Message-ID: <51A720B8.2030002@digi.com> Date: Thu, 30 May 2013 11:49:44 +0200 From: Javier Viguera User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: "meta-freescale@yoctoproject.org" References: <1369850483-17206-1-git-send-email-eric@eukrea.com> <1369850483-17206-3-git-send-email-eric@eukrea.com> In-Reply-To: <1369850483-17206-3-git-send-email-eric@eukrea.com> Subject: Re: [PATCH v4 3/3] amd-gpu-bin-mx51: new recipe 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: Thu, 30 May 2013 09:49:57 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Hi Eric, On 29/05/13 20:01, Eric Bénard wrote: > diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-bin-mx51_11.09.01.bb > +COMPATIBLE_MACHINE = "(mx5)" > diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb > COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', '', d)}" I'm still learning yocto/openembedded so bear with me if all the following does not make sense, but is this correct? When DISTRO_FEATURES contains x11, *both* packages will have: COMPATIBLE_MACHINE = "(mx5)" so both will be available. When DISTRO_FEATURES does *NOT* contain x11, then: amd-gpu-bin-mx51: COMPATIBLE_MACHINE = "(mx5)" amd-gpu-x11-bin-mx51: COMPATIBLE_MACHINE = "" But in this case if i have not misunderstood the semantics of COMPATIBLE_MACHINE both will be again available as an empty COMPATIBLE_MACHINE means that it's available. Not sure it it's very elegant, but i have seen in meta-openembedded layer something similar using "Invalid!" string to invalidate one or the other recipe depending on the distro feature. Shouldn't then be something like the following: amd-gpu-bin-mx51: COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', 'Invalid!', '(mx5)', d)}" amd-gpu-x11-bin-mx51: COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}" - Javier Viguera Software Engineer Digi International® Spain S.A.U.