summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-07-10 18:12:40 +0200
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-07-14 21:33:59 +0200
commit8a68f0d1c47b7d802018a3cacd4dc1cc113194cf (patch)
tree28f592ba1ea21c521c8ff1c112008bb9eed7fdc9 /classes/base.bbclass
parent847c0dadb9f55af5cc4556486cde3d9dcc2129af (diff)
base.bbclass: introduce COMPATIBLE_TARGET_SYS
This patch introduces COMPATIBLE_TARGET_SYS It is similar to COMPATIBLE_MACHINE but where COMPATIBLE_MACHINE is used to specify that a certain recipe is for a certain machine COMPATIBLE_TARGET_SYS can be used to specify that a certain recipe is for a certain architecture. Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index b30310d446..f76d03c748 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -391,6 +391,13 @@ python () {
if this_machine and not re.match(need_machine, this_machine):
raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
+ need_target = bb.data.getVar('COMPATIBLE_TARGET_SYS', d, 1)
+ if need_target:
+ import re
+ this_target = bb.data.getVar('TARGET_SYS', d, 1)
+ if this_target and not re.match(need_target, this_target):
+ raise bb.parse.SkipPackage("incompatible with target system %s" % this_target)
+
pn = bb.data.getVar('PN', d, 1)
# OBSOLETE in bitbake 1.7.4