sane-toolchain.inc: Fix a thinko in compute_os_portion_of_target_triplet
authorTom Rini <tom_rini@mentor.com>
Thu, 24 Feb 2011 23:11:25 +0000 (16:11 -0700)
committerTom Rini <tom_rini@mentor.com>
Thu, 24 Feb 2011 23:15:25 +0000 (16:15 -0700)
Reported by by Pau Espin Pedrol

Signed-off-by: Tom Rini <tom_rini@mentor.com>
conf/distro/include/sane-toolchain.inc

index dd06650..5882fd7 100644 (file)
@@ -199,8 +199,8 @@ def compute_os_portion_of_target_triplet (d):
                bb.note("DISTRO_FEATURES is not set abi suffix not set")
                abi_suffix = ""
 
-       if bb.data.getVar('TOOLCHAIN_BRAND',d,1) is not None and \
-       bb.data.getVar('TOOLCHAIN_BRAND',d,1) in "csl":
+       if bb.data.getVar('TOOLCHAIN_BRAND', d, 1) is not None and \
+       "csl" in bb.data.getVar('TOOLCHAIN_BRAND', d, 1):
                gnu_suffix = "gnu"
 
        if libc_suffix + gnu_suffix + abi_suffix is not "":