All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES
Date: Tue, 1 Mar 2011 14:26:25 -0600	[thread overview]
Message-ID: <4D6D5671.6050903@windriver.com> (raw)
In-Reply-To: <A632FFDE-18DE-439E-B247-80DE29746320@dominion.thruhere.net>

On 3/1/11 1:55 PM, Koen Kooi wrote:
> ping

Do you have an example showing how this is to be used?

--Mark

> Op 28 feb 2011, om 20:21 heeft Koen Kooi het volgende geschreven:
> 
>> * Add support for using SOC_FAMILY in the COMPATIBLE_MACHINES
>>  setting for a recipe.
>> * This will allow recipes to work for entire families of
>>  devices without having to maintain/update the compatible
>>  devices as new devices are added into a family
>>
>> Based on 07076390358f211bd96779bec2d6eb5eaa0ad699 by Chase Maupin <chase.maupin@ti.com>
>>
>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
>> ---
>> meta/classes/base.bbclass |    4 +++-
>> 1 files changed, 3 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>> index a674f52..aaf99da 100644
>> --- a/meta/classes/base.bbclass
>> +++ b/meta/classes/base.bbclass
>> @@ -342,7 +342,9 @@ python () {
>>             import re
>>             this_machine = bb.data.getVar('MACHINE', d, 1)
>>             if this_machine and not re.match(need_machine, this_machine):
>> -                raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
>> +                this_soc_family = bb.data.getVar('SOC_FAMILY', d, 1)
>> +                if (this_soc_family and not re.match(need_machine, this_soc_family)) or not this_soc_family:
>> +                    raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
>>
>>
>>         dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1)
>> -- 
>> 1.6.6.1
>>
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




  reply	other threads:[~2011-03-02  0:09 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28 19:21 [PATCH] base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES Koen Kooi
2011-03-01 19:55 ` Koen Kooi
2011-03-01 20:26   ` Mark Hatle [this message]
2011-03-02  0:14     ` Tom Rini
2011-03-02  0:51       ` Mark Hatle
2011-03-01 23:53   ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2011-02-24 14:32 Koen Kooi
2010-08-03 21:47 Chase Maupin
2010-08-04  0:19 ` Denys Dmytriyenko
2010-08-04  5:20   ` Khem Raj
2010-08-04 11:17     ` Michael 'Mickey' Lauer
2010-08-04 11:48       ` Phil Blundell
2010-08-04 14:11         ` Maupin, Chase
2010-08-04 16:50           ` Denys Dmytriyenko
2010-08-04 21:50           ` Phil Blundell
2010-08-04 16:13         ` Denys Dmytriyenko
2010-08-04 16:59           ` Graeme Gregory
2010-08-04 17:21             ` Denys Dmytriyenko
2010-08-04 19:41               ` Graeme Gregory
2010-08-04  9:13   ` Koen Kooi
2010-08-04  9:44     ` Frans Meulenbroeks
2010-08-04 19:02       ` Tom Rini
2010-08-04  9:54 ` Phil Blundell
2010-08-04 19:49   ` Khem Raj
2010-08-04 20:24     ` Maupin, Chase
2010-08-04 21:37       ` Khem Raj
2010-08-04 23:56         ` Koen Kooi
2010-08-05  4:38           ` Khem Raj

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=4D6D5671.6050903@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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.