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

(From OE-Core rev: 03f7322b1f4e1b1cf465a46cba3b82573384ab9e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2012-06-09 22:19:24 +00:00 committed by Richard Purdie
parent 53981ad824
commit 4b55c928c1
1 changed files with 2 additions and 2 deletions

View 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",