summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-04-24 22:50:46 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-24 22:50:46 +0000
commit25632d8a6d2aa5e54ef13983005d301cb83caa13 (patch)
treea4f20d444c099fef97cc2b5e9421ced7f53c8e37
parentdbb35efbd5742c54c9215d7b8303a75e7e2b88e6 (diff)
parent6dfb3436112ac4f5250180f3ae802a961ea319fc (diff)
merge of 5f1164894dc4b3fa10915980e3c3b47c0d316fe2
and ece77b91b5c58e4e6897ebb3c0142cd8509797aa
-rw-r--r--classes/base.bbclass9
-rw-r--r--conf/documentation.conf3
2 files changed, 11 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)
diff --git a/conf/documentation.conf b/conf/documentation.conf
index d85ccdb0db..20bcc53f5f 100644
--- a/conf/documentation.conf
+++ b/conf/documentation.conf
@@ -96,3 +96,6 @@ SYSVINIT_ENABLED_GETTYS[doc] = "Specify which VTs should be running a getty, the
# palmtop build class
PALMTOP_USE_MULTITHREADED_QT[doc] = "Set to yes, if you want to build qt apps with CONFIG+=thread"
+
+COMPATIBLE_HOST[doc] = "A regular expression which matches the HOST_SYS names supported by the package/file. Failure to match will cause the file to be skipped by the parser."
+COMPATIBLE_MACHINE[doc] = "A regular expression which matches the MACHINES support by the package/file. Failure to match will cause the file to be skipped by the parser." \ No newline at end of file