summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-03-01 03:21:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-14 15:58:56 +0100
commit5d142381270270a02057764c9e5c744c9ba68370 (patch)
tree04941a03065ea184dfb38e39864c8b6399f73f4a /meta/classes
parent6b94fbdd9eda4daf8cd849adc05f0b375c178e1a (diff)
downloadpoky-5d142381270270a02057764c9e5c744c9ba68370.tar.gz
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 Based on 07076390358f211bd96779bec2d6eb5eaa0ad699 by Chase Maupin <chase.maupin@ti.com> (From OE-Core rev: dc303cbf25cf48aa98ff1979882820dd25f8cd9d) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e740650cfd..119b052f3f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -285,7 +285,9 @@ python () {
285 import re 285 import re
286 this_machine = bb.data.getVar('MACHINE', d, 1) 286 this_machine = bb.data.getVar('MACHINE', d, 1)
287 if this_machine and not re.match(need_machine, this_machine): 287 if this_machine and not re.match(need_machine, this_machine):
288 raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) 288 this_soc_family = bb.data.getVar('SOC_FAMILY', d, 1)
289 if (this_soc_family and not re.match(need_machine, this_soc_family)) or not this_soc_family:
290 raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
289 291
290 292
291 dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1) 293 dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1)