[oe] [PATCH] base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES

Koen Kooi k.kooi at student.utwente.nl
Wed Aug 4 09:13:32 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04-08-10 02:19, Denys Dmytriyenko wrote:
> On Tue, Aug 03, 2010 at 04:47:20PM -0500, Chase Maupin wrote:
>> * 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
>>
>> Signed-off-by: Chase Maupin <chase.maupin at ti.com>
> 
> Acked-by: Denys Dmytriyenko <denys at ti.com>

Acked-by: Koen Kooi <k-kooi at ti.com>






> 
> While SOC_FAMILY feature is relatively new on its own, it was designed and now 
> being extensively used with TI machines and corresponding recipes as an 
> effective override - e.g. covering many OMAP3-based machines with a single 
> VAR_omap3 = "VAL" expression.
> 
>> ---
>>  classes/base.bbclass |    4 +++-
>>  1 files changed, 3 insertions(+), 1 deletions(-)
>>
>> diff --git a/classes/base.bbclass b/classes/base.bbclass
>> index 1847491..02c7875 100644
>> --- a/classes/base.bbclass
>> +++ b/classes/base.bbclass
>> @@ -389,7 +389,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):
>> +                    raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
>>  
>>          need_target = bb.data.getVar('COMPATIBLE_TARGET_SYS', d, 1)
>>          if need_target:
>> -- 
>> 1.7.0.4
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMWS88MkyGM64RGpERAnkkAJ94TErZj0L40RwgMpHejgg8nO+CpgCeNVHI
6uB1qsq0Mj4IP48OxmIyTas=
=jTnu
-----END PGP SIGNATURE-----





More information about the Openembedded-devel mailing list