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.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 6e64441c3d..ad96989573 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -34,6 +34,30 @@ def get_gcc_multiarch_setting(bb, d):
34 return multiarch_options[target_arch] 34 return multiarch_options[target_arch]
35 return "" 35 return ""
36 36
37# this is used by the multilib setup of gcc
38def get_tune_parameters(tune, d):
39 availtunes = d.getVar('AVAILTUNES', True)
40 if tune not in availtunes.split():
41 bb.error('The tune: %s is not one of the available tunes: %s', tune, availtunes)
42
43 localdata = bb.data.createCopy(d)
44 override = ':tune-' + tune
45 localdata.setVar('OVERRIDES', localdata.getVar('OVERRIDES', False) + override)
46 bb.data.update_data(localdata)
47
48 retdict = {}
49 retdict['tune'] = tune
50 retdict['ccargs'] = localdata.getVar('TUNE_CCARGS', True)
51 retdict['features'] = localdata.getVar('TUNE_FEATURES', True)
52 # BASELIB is used by the multilib code to change library paths
53 retdict['baselib'] = localdata.getVar('BASE_LIB', True) or localdata.getVar('BASELIB', True)
54 retdict['arch'] = localdata.getVar('TUNE_ARCH', True)
55 retdict['abiextension'] = localdata.getVar('ABIEXTENSION', True)
56 retdict['target_fpu'] = localdata.getVar('TARGET_FPU', True)
57 retdict['pkgarch'] = localdata.getVar('TUNE_PKGARCH', True)
58 retdict['package_extra_archs'] = localdata.getVar('PACKAGE_EXTRA_ARCHS', True)
59 return retdict
60
37# We really need HOST_SYS here for some packages and TARGET_SYS for others. 61# We really need HOST_SYS here for some packages and TARGET_SYS for others.
38# For now, libgcc is most important so we fix for that - RP. 62# For now, libgcc is most important so we fix for that - RP.
39SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs" 63SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"