summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-cross.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-06-20 08:18:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-21 13:03:04 +0100
commite146139b42460e20db9749e8fdebd14db8513034 (patch)
tree7ce6194fc2ecbae8502c1abb35725c6731f0d173 /meta/recipes-devtools/binutils/binutils-cross.inc
parentbe9756ae12c7ea4629943bf59f30f0c8330a2056 (diff)
downloadpoky-e146139b42460e20db9749e8fdebd14db8513034.tar.gz
binutils: Add with-sysroot to target binutils
Also rearrange the recipes to have common bits in inc files and not include the target bb file everywhere. This lets us add specific options to specific recipes particularly target recipe in this case (From OE-Core rev: f4ed063e32f064e996a4c29760fa4ac49f1ed73c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-cross.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils-cross.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc
index 80152a9b4c..300a1d39ec 100644
--- a/meta/recipes-devtools/binutils/binutils-cross.inc
+++ b/meta/recipes-devtools/binutils/binutils-cross.inc
@@ -4,14 +4,10 @@ PROVIDES = "virtual/${TARGET_PREFIX}binutils"
4INHIBIT_DEFAULT_DEPS = "1" 4INHIBIT_DEFAULT_DEPS = "1"
5INHIBIT_AUTOTOOLS_DEPS = "1" 5INHIBIT_AUTOTOOLS_DEPS = "1"
6 6
7EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ 7EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} \
8 --program-prefix=${TARGET_PREFIX} \
9 --disable-install-libbfd \ 8 --disable-install-libbfd \
10 --disable-werror \
11 --enable-poison-system-directories \ 9 --enable-poison-system-directories \
12 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)} \ 10 "
13 ${@base_contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
14
15do_install () { 11do_install () {
16 oe_runmake 'DESTDIR=${D}' install 12 oe_runmake 'DESTDIR=${D}' install
17 13