Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES
@ 2011-02-28 19:21 Koen Kooi
  2011-03-01 19:55 ` Koen Kooi
  0 siblings, 1 reply; 7+ messages in thread
From: Koen Kooi @ 2011-02-28 19:21 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

* 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




^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINES
@ 2011-02-24 14:32 Koen Kooi
  0 siblings, 0 replies; 7+ messages in thread
From: Koen Kooi @ 2011-02-24 14:32 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi

* 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




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-02  0:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox