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>
This commit is contained in:
Joshua Lock 2010-06-14 12:51:34 +01:00
parent 5735f03d18
commit c350927b22
1 changed files with 1 additions and 1 deletions

View File

@ -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'
#