summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKartik Mohta <kartikmohta@gmail.com>2012-07-03 23:21:07 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-09 16:51:21 +0100
commit7fd82cc90a48302ed42b6bfa962bb0de2c652b45 (patch)
treef5bb6754c7fe194b6d2dbddee555ed8368d137f5 /meta/recipes-devtools/gcc
parent9705ccc10892b15fa3269ed071bb41d45987694c (diff)
downloadopenembedded-core-7fd82cc90a48302ed42b6bfa962bb0de2c652b45.tar.gz
openembedded-core-7fd82cc90a48302ed42b6bfa962bb0de2c652b45.tar.bz2
openembedded-core-7fd82cc90a48302ed42b6bfa962bb0de2c652b45.zip
gcc-common: Don't use "is" for comparing strings, use "=="
Needed because the equality check was failing here even though upon printing the LHS and RHS were the same. As per http://stackoverflow.com/a/2987975/64537, using "is" compares the memory addresses of the two objects which is not what we want here. We just want to compare the values. Signed-off-by: Kartik Mohta <kartikmohta@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 45828bb5f5..0a9324aa3c 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -10,7 +10,7 @@ inherit autotools gettext
FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/gcc-${PV}"
def get_gcc_fpu_setting(bb, d):
- if d.getVar('ARMPKGSFX_EABI', True) is "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) is "arm":
+ if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm":
return "--with-float=hard"
if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
return "--with-float=soft"