]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 1 Mar 2011 03:21:07 +0000 (03:21 +0000)
committerKhem Raj <raj.khem@gmail.com>
Tue, 1 Mar 2011 21:32:39 +0000 (13:32 -0800)
* 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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/classes/base.bbclass

index 300981010aa7dbf60d5f12a653949f5819d8ef67..e53ebe413374f12d71a2b29533dfbbaa0b640f8a 100644 (file)
@@ -313,7 +313,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)