]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-common: Replace use of TARGET_ARCH with TRANSLATED_TARGET_ARCH
authorKhem Raj <raj.khem@gmail.com>
Sat, 9 Jun 2012 22:19:24 +0000 (22:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Jun 2012 12:42:46 +0000 (13:42 +0100)
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>
meta/recipes-devtools/gcc/gcc-common.inc

index 7911ceb0f39fcd78c9e6b1298df83d67b683bbc5..45828bb5f54a6a349d5dfa58ec75c659f78cb6c8 100644 (file)
@@ -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",