diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-04-24 22:50:02 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-24 22:50:02 +0000 |
commit | 6dfb3436112ac4f5250180f3ae802a961ea319fc (patch) | |
tree | f7809a0e6023ecf1cc764b6d9a760185a405687c /classes | |
parent | 51436cc601a5a1c9a0ee2fc3095166315919dc33 (diff) |
base.bbclass: Add COMPATIBLE_MACHINE to list machines any given package/file is
compatible with. Update documentation.conf accordingly.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index a06c1c1905..1728b65709 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -723,7 +723,14 @@ python __anonymous () { this_host = bb.data.getVar('HOST_SYS', d, 1) if not re.match(need_host, this_host): raise bb.parse.SkipPackage("incompatible with host %s" % this_host) - + + need_machine = bb.data.getVar('COMPATIBLE_MACHINE', d, 1) + if need_machine: + import re + this_machine = bb.data.getVar('MACHINE', d, 1) + if not re.match(need_machine, this_machine): + raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) + pn = bb.data.getVar('PN', d, 1) srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1) |