From 846cfdaeb722991f72663ec2b5e84ce90cf505cd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 31 May 2006 20:53:07 +0000 Subject: [PATCH] base.bbclass: Fix COMPATIBLE_MACHINE to cope when MACHINE isn't set --- classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/base.bbclass b/classes/base.bbclass index b292355920..4bf37dfd03 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -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) -- 2.39.5