summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-02-16 19:48:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-18 08:38:52 +0000
commita8daee2fe41d633013e2f5e3e30556f1790072ca (patch)
treebdc3d396ee509ecc64828ab3bc49a8162244d33e /meta/recipes-devtools
parentf5205c568cb0d29059c4d8c2dc200e435787f5d8 (diff)
downloadpoky-a8daee2fe41d633013e2f5e3e30556f1790072ca.tar.gz
binutils: ld-is-gold should not affect native and crosssdk recipes
gold linker does not support all architectures, currently arm and x86 are best supported, therefore we can not enable this as a full distro option where we need to support other architectures e.g. ppc, mips currently, if we enable ld-is-gold distro feature conditionally then it invalidates native and sdk version of native binutils because configure option would change. With this patch we limit ld-is-gold feature to imapact cross binutils and target binutils only. This means that we can reuse the sdk and native versions across architectures. (From OE-Core rev: 542609b968f0dc6f56cc9d6aabe4ff0144041261) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 6380d54a96..7f084b5cc4 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -67,10 +67,14 @@ B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
67 67
68EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ 68EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
69 --disable-werror \ 69 --disable-werror \
70 --enable-plugins \ 70 --enable-plugins \
71 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)} \ 71 ${LDGOLD} \
72 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" 72 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
73 73
74LDGOLD_class-native = ""
75LDGOLD_class-crosssdk = ""
76LDGOLD ?= "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '', d)}"
77
74# This is necessary due to a bug in the binutils Makefiles 78# This is necessary due to a bug in the binutils Makefiles
75# EXTRA_OEMAKE = "configure-build-libiberty all" 79# EXTRA_OEMAKE = "configure-build-libiberty all"
76 80