base.bbclass: Add COMPATIBLE_MACHINE to list machines any given package/file is
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 24 Apr 2006 22:50:02 +0000 (22:50 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 24 Apr 2006 22:50:02 +0000 (22:50 +0000)
compatible with. Update documentation.conf accordingly.

classes/base.bbclass
conf/documentation.conf

index a06c1c1..1728b65 100644 (file)
@@ -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)
index d85ccdb..20bcc53 100644 (file)
@@ -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