summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-14 12:51:34 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-14 12:51:34 +0100
commitdc123ba83112a61b77d6e6b3643c4a7da206a2ca (patch)
treef52a3ced625750eb9df44428904a81c44b1faf61
parent887a7768cf67c6be08f00dac83d363fe5ab98ea3 (diff)
downloadpoky-dc123ba83112a61b77d6e6b3643c4a7da206a2ca.tar.gz
poky-dc123ba83112a61b77d6e6b3643c4a7da206a2ca.tar.bz2
poky-dc123ba83112a61b77d6e6b3643c4a7da206a2ca.zip
sanity.bbclass: Fix test for i686 SDKMACHINE
The 'is' keyword tests for object identity, returning True if the variables are both referencing the same object. Changed the test to use the equality operator, which compares the values of the objects. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--meta/classes/sanity.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 02fa6435c0..53a3cea928 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -140,7 +140,7 @@ def check_sanity(e):
if not oes_bb_conf:
messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf. This means your environment is misconfigured, in particular check BBPATH.\n'
- if data.getVar('SDKMACHINE', e.data, True) is 'i686':
+ if data.getVar('SDKMACHINE', e.data, True) == 'i686':
messages = messages + '"Please set SDKMACHINE to i586 as its currently set to i686 and this is known to have issues (see local.conf).\n'
#