[oe-commits] Tom Rini : sane-toolchain.inc: Fix a thinko in compute_os_portion_of_target_triplet

git version control git at git.openembedded.org
Thu Feb 24 23:16:54 UTC 2011


Module: openembedded.git
Branch: master
Commit: c25762d71db23f6705b4afc861d44fe38c1fb537
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c25762d71db23f6705b4afc861d44fe38c1fb537

Author: Tom Rini <tom_rini at mentor.com>
Date:   Thu Feb 24 16:11:25 2011 -0700

sane-toolchain.inc: Fix a thinko in compute_os_portion_of_target_triplet

Reported by by Pau Espin Pedrol

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 conf/distro/include/sane-toolchain.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/conf/distro/include/sane-toolchain.inc b/conf/distro/include/sane-toolchain.inc
index dd06650..5882fd7 100644
--- a/conf/distro/include/sane-toolchain.inc
+++ b/conf/distro/include/sane-toolchain.inc
@@ -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 "":





More information about the Openembedded-commits mailing list