[oe-commits] Chase Maupin : base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES

git version control git at git.openembedded.org
Wed Aug 4 13:52:20 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 07076390358f211bd96779bec2d6eb5eaa0ad699
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=07076390358f211bd96779bec2d6eb5eaa0ad699

Author: Chase Maupin <chasemaupin03 at gmail.com>
Date:   Tue Aug  3 11:47:20 2010 +0000

base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES

* 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>
Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 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:





More information about the Openembedded-commits mailing list