summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-06-09 22:19:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-11 13:42:46 +0100
commit03f7322b1f4e1b1cf465a46cba3b82573384ab9e (patch)
tree45c1e04a008ae345044d24c501d4cd1035184382 /meta
parentf48bb903218e14ba15dab452e8bb43ba25b9ea44 (diff)
downloadopenembedded-core-03f7322b1f4e1b1cf465a46cba3b82573384ab9e.tar.gz
openembedded-core-03f7322b1f4e1b1cf465a46cba3b82573384ab9e.tar.bz2
openembedded-core-03f7322b1f4e1b1cf465a46cba3b82573384ab9e.zip
gcc-common: Replace use of TARGET_ARCH with TRANSLATED_TARGET_ARCH
TARGET_ARCH is poured into TRANSLATED_TARGET_ARCH for gcc-cross family or gcc-crosssdk family of recipes we have to check for TRANSLATED_TARGET_ARCH Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 7911ceb0f3..45828bb5f5 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -19,12 +19,12 @@ def get_gcc_fpu_setting(bb, d):
return ""
def get_gcc_mips_plt_setting(bb, d):
- if d.getVar('TARGET_ARCH', True) in [ 'mips', 'mipsel' ] and 'mplt' in d.getVar('DISTRO_FEATURES',1).split() :
+ if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'mips', 'mipsel' ] and 'mplt' in d.getVar('DISTRO_FEATURES',1).split() :
return "--with-mips-plt"
return ""
def get_gcc_multiarch_setting(bb, d):
- target_arch = d.getVar('TARGET_ARCH', True)
+ target_arch = d.getVar('TRANSLATED_TARGET_ARCH', True)
multiarch_options = {
"i586": "--enable-targets=all",
"powerpc": "--enable-targets=powerpc64",