summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc32
1 files changed, 16 insertions, 16 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index f540b4d965..d17ba29d1d 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -10,35 +10,35 @@ inherit autotools gettext texinfo
10BPN = "gcc" 10BPN = "gcc"
11 11
12def get_gcc_float_setting(bb, d): 12def get_gcc_float_setting(bb, d):
13 if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm": 13 if d.getVar('ARMPKGSFX_EABI') == "hf" and d.getVar('TRANSLATED_TARGET_ARCH') == "arm":
14 return "--with-float=hard" 14 return "--with-float=hard"
15 if d.getVar('TARGET_FPU', True) in [ 'soft' ]: 15 if d.getVar('TARGET_FPU') in [ 'soft' ]:
16 return "--with-float=soft" 16 return "--with-float=soft"
17 if d.getVar('TARGET_FPU', True) in [ 'ppc-efd' ]: 17 if d.getVar('TARGET_FPU') in [ 'ppc-efd' ]:
18 return "--enable-e500_double" 18 return "--enable-e500_double"
19 return "" 19 return ""
20 20
21get_gcc_float_setting[vardepvalue] = "${@get_gcc_float_setting(bb, d)}" 21get_gcc_float_setting[vardepvalue] = "${@get_gcc_float_setting(bb, d)}"
22 22
23def get_gcc_mips_plt_setting(bb, d): 23def get_gcc_mips_plt_setting(bb, d):
24 if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'mips', 'mipsel' ] and bb.utils.contains('DISTRO_FEATURES', 'mplt', True, False, d): 24 if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'mips', 'mipsel' ] and bb.utils.contains('DISTRO_FEATURES', 'mplt', True, False, d):
25 return "--with-mips-plt" 25 return "--with-mips-plt"
26 return "" 26 return ""
27 27
28def get_gcc_ppc_plt_settings(bb, d): 28def get_gcc_ppc_plt_settings(bb, d):
29 if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc' ] and not bb.utils.contains('DISTRO_FEATURES', 'bssplt', True, False, d): 29 if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'powerpc' ] and not bb.utils.contains('DISTRO_FEATURES', 'bssplt', True, False, d):
30 return "--enable-secureplt" 30 return "--enable-secureplt"
31 return "" 31 return ""
32 32
33def get_long_double_setting(bb, d): 33def get_long_double_setting(bb, d):
34 if d.getVar('TRANSLATED_TARGET_ARCH', True) in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC', True) in [ 'uclibc', 'glibc' ]: 34 if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'powerpc', 'powerpc64' ] and d.getVar('TCLIBC') in [ 'uclibc', 'glibc' ]:
35 return "--with-long-double-128" 35 return "--with-long-double-128"
36 else: 36 else:
37 return "--without-long-double-128" 37 return "--without-long-double-128"
38 return "" 38 return ""
39 39
40def get_gcc_multiarch_setting(bb, d): 40def get_gcc_multiarch_setting(bb, d):
41 target_arch = d.getVar('TRANSLATED_TARGET_ARCH', True) 41 target_arch = d.getVar('TRANSLATED_TARGET_ARCH')
42 multiarch_options = { 42 multiarch_options = {
43 "i586": "--enable-targets=all", 43 "i586": "--enable-targets=all",
44 "i686": "--enable-targets=all", 44 "i686": "--enable-targets=all",
@@ -54,7 +54,7 @@ def get_gcc_multiarch_setting(bb, d):
54 54
55# this is used by the multilib setup of gcc 55# this is used by the multilib setup of gcc
56def get_tune_parameters(tune, d): 56def get_tune_parameters(tune, d):
57 availtunes = d.getVar('AVAILTUNES', True) 57 availtunes = d.getVar('AVAILTUNES')
58 if tune not in availtunes.split(): 58 if tune not in availtunes.split():
59 bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes)) 59 bb.error('The tune: %s is not one of the available tunes: %s' % (tune or None, availtunes))
60 60
@@ -65,15 +65,15 @@ def get_tune_parameters(tune, d):
65 65
66 retdict = {} 66 retdict = {}
67 retdict['tune'] = tune 67 retdict['tune'] = tune
68 retdict['ccargs'] = localdata.getVar('TUNE_CCARGS', True) 68 retdict['ccargs'] = localdata.getVar('TUNE_CCARGS')
69 retdict['features'] = localdata.getVar('TUNE_FEATURES', True) 69 retdict['features'] = localdata.getVar('TUNE_FEATURES')
70 # BASELIB is used by the multilib code to change library paths 70 # BASELIB is used by the multilib code to change library paths
71 retdict['baselib'] = localdata.getVar('BASE_LIB', True) or localdata.getVar('BASELIB', True) 71 retdict['baselib'] = localdata.getVar('BASE_LIB') or localdata.getVar('BASELIB')
72 retdict['arch'] = localdata.getVar('TUNE_ARCH', True) 72 retdict['arch'] = localdata.getVar('TUNE_ARCH')
73 retdict['abiextension'] = localdata.getVar('ABIEXTENSION', True) 73 retdict['abiextension'] = localdata.getVar('ABIEXTENSION')
74 retdict['target_fpu'] = localdata.getVar('TARGET_FPU', True) 74 retdict['target_fpu'] = localdata.getVar('TARGET_FPU')
75 retdict['pkgarch'] = localdata.getVar('TUNE_PKGARCH', True) 75 retdict['pkgarch'] = localdata.getVar('TUNE_PKGARCH')
76 retdict['package_extra_archs'] = localdata.getVar('PACKAGE_EXTRA_ARCHS', True) 76 retdict['package_extra_archs'] = localdata.getVar('PACKAGE_EXTRA_ARCHS')
77 return retdict 77 return retdict
78 78
79get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS" 79get_tune_parameters[vardepsexclude] = "AVAILTUNES TUNE_CCARGS OVERRIDES TUNE_FEATURES BASE_LIB BASELIB TUNE_ARCH ABIEXTENSION TARGET_FPU TUNE_PKGARCH PACKAGE_EXTRA_ARCHS"