summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc17
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc1
2 files changed, 11 insertions, 7 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index 7ec2f7e463..fe112d9d0a 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -22,13 +22,16 @@ def get_gcc_mips_plt_setting(bb, d):
22 return "" 22 return ""
23 23
24def get_gcc_multiarch_setting(bb, d): 24def get_gcc_multiarch_setting(bb, d):
25 if 'multiarch' in bb.data.getVar('DISTRO_FEATURES',d,1).split() : 25 target_arch = d.getVar('TARGET_ARCH', True)
26 if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'i586', 'i686' ] : 26 multiarch_options = {
27 return "--enable-targets=all" 27 "i586": "--enable-targets=all",
28 if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'powerpc' ] : 28 "powerpc": "--enable-targets=powerpc64",
29 return "--enable-targets=powerpc64" 29 "sparc": "--enable-targets=all",
30 if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sparc' ] : 30 }
31 return "--enable-targets=all" 31
32 if 'multiarch' in d.getVar('DISTRO_FEATURES', True).split() :
33 if target_arch in multiarch_options :
34 return multiarch_options[target_arch]
32 return "" 35 return ""
33 36
34# We really need HOST_SYS here for some packages and TARGET_SYS for others. 37# We really need HOST_SYS here for some packages and TARGET_SYS for others.
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index e01b57cc87..d728139f62 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -41,6 +41,7 @@ EXPAT = "--without-expat"
41EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ 41EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
42 --with-curses --disable-multilib --with-system-readline --disable-sim \ 42 --with-curses --disable-multilib --with-system-readline --disable-sim \
43 ${GDBPROPREFIX} --with-libelf=${STAGING_DIR_TARGET} ${EXPAT} \ 43 ${GDBPROPREFIX} --with-libelf=${STAGING_DIR_TARGET} ${EXPAT} \
44 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
44 " 45 "
45 46
46GDBPROPREFIX = "--program-prefix=''" 47GDBPROPREFIX = "--program-prefix=''"