base.bbclass: Fix COMPATIBLE_MACHINE to cope when MACHINE isn't set
authorRichard Purdie <rpurdie@rpsys.net>
Wed, 31 May 2006 20:53:07 +0000 (20:53 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 31 May 2006 20:53:07 +0000 (20:53 +0000)
classes/base.bbclass

index b292355..4bf37df 100644 (file)
@@ -703,7 +703,7 @@ python __anonymous () {
        if need_machine:
                import re
                this_machine = bb.data.getVar('MACHINE', d, 1)
-               if not re.match(need_machine, this_machine):
+               if this_machine and not re.match(need_machine, this_machine):
                        raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine)
 
        pn = bb.data.getVar('PN', d, 1)