summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/binutils-cross_2.14.90.0.6.oe3
-rw-r--r--binutils/binutils-uclibc-cross_2.14.90.0.6.oe5
-rw-r--r--binutils/binutils-uclibc_2.14.90.0.6.oe2
-rw-r--r--binutils/binutils_2.14.90.0.6.oe44
4 files changed, 23 insertions, 31 deletions
diff --git a/binutils/binutils-cross_2.14.90.0.6.oe b/binutils/binutils-cross_2.14.90.0.6.oe
index 6d8a2d1a7c..3ad13e5cbb 100644
--- a/binutils/binutils-cross_2.14.90.0.6.oe
+++ b/binutils/binutils-cross_2.14.90.0.6.oe
@@ -1,6 +1,7 @@
include binutils_${PV}.oe
inherit cross
-PROVIDES = virtual/${TARGET_SYS}-binutils
+PROVIDES = virtual/${TARGET_PREFIX}binutils
+DEPENDS = patcher
FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
D=${CROSS_DIR}
diff --git a/binutils/binutils-uclibc-cross_2.14.90.0.6.oe b/binutils/binutils-uclibc-cross_2.14.90.0.6.oe
index f91bbb757f..feada83a3f 100644
--- a/binutils/binutils-uclibc-cross_2.14.90.0.6.oe
+++ b/binutils/binutils-uclibc-cross_2.14.90.0.6.oe
@@ -1,4 +1,5 @@
include binutils-uclibc_${PV}.oe
inherit cross
-PROVIDES = virtual/${TARGET_SYS}-binutils
-FILESDIR = ${TOPDIR}/binutils/binutils-${PV}
+PROVIDES = virtual/${TARGET_PREFIX}binutils
+DEPENDS = patcher
+FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
diff --git a/binutils/binutils-uclibc_2.14.90.0.6.oe b/binutils/binutils-uclibc_2.14.90.0.6.oe
index 711e4ce145..200477d0da 100644
--- a/binutils/binutils-uclibc_2.14.90.0.6.oe
+++ b/binutils/binutils-uclibc_2.14.90.0.6.oe
@@ -1,5 +1,5 @@
include binutils_${PV}.oe
-FILESDIR = ${TOPDIR}/binutils/binutils-${PV}
+FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
binutilsbuild_do_patch () {
oenote IN binutils patch
diff --git a/binutils/binutils_2.14.90.0.6.oe b/binutils/binutils_2.14.90.0.6.oe
index d028e6cf4c..99b1f8564f 100644
--- a/binutils/binutils_2.14.90.0.6.oe
+++ b/binutils/binutils_2.14.90.0.6.oe
@@ -4,7 +4,7 @@ DESCRIPTION := A GNU collection of binary utilities
LICENSE := GPL
MAINTAINER := Gerald Britton <gbritton@doomcom.org>
-DEPENDS := virtual/${CROSS}binutils virtual/${CROSS}gcc \
+DEPENDS := virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc \
virtual/libc virtual/libc-headers patcher
PACKAGES = ${PN} ${PN}-doc
@@ -25,41 +25,31 @@ EXTRA_OECONF := --enable-targets=${TARGET_SYS} \
--with-sysroot=${prefix} \
--with-lib-path=${prefix}/lib:/lib \
--enable-multilib \
- --program-prefix=${TARGET_SYS}-
+ --program-prefix=${TARGET_PREFIX}
# This is necessary due to a bug in the binutils Makefiles
EXTRA_OEMAKE = configure-build-libiberty all
-export AR = ${CROSS}ar
-export AS = ${CROSS}as
-export LD = ${CROSS}ld
-export NM = ${CROSS}nm
-export RANLIB = ${CROSS}ranlib
-export OBJCOPY = ${CROSS}objcopy
-export OBJDUMP = ${CROSS}objdump
+export AR = ${HOST_PREFIX}ar
+export AS = ${HOST_PREFIX}as
+export LD = ${HOST_PREFIX}ld
+export NM = ${HOST_PREFIX}nm
+export RANLIB = ${HOST_PREFIX}ranlib
+export OBJCOPY = ${HOST_PREFIX}objcopy
+export OBJDUMP = ${HOST_PREFIX}objdump
-export AR_FOR_TARGET = ${TARGET_SYS}-ar
-export AS_FOR_TARGET = ${TARGET_SYS}-as
-export LD_FOR_TARGET = ${TARGET_SYS}-ld
-export NM_FOR_TARGET = ${TARGET_SYS}-nm
-export RANLIB_FOR_TARGET = ${TARGET_SYS}-ranlib
+export AR_FOR_TARGET = ${TARGET_PREFIX}ar
+export AS_FOR_TARGET = ${TARGET_PREFIX}as
+export LD_FOR_TARGET = ${TARGET_PREFIX}ld
+export NM_FOR_TARGET = ${TARGET_PREFIX}nm
+export RANLIB_FOR_TARGET = ${TARGET_PREFIX}ranlib
-export CC_FOR_HOST = ${CCACHE} ${CROSS}gcc
-export CXX_FOR_HOST = ${CCACHE} ${CROSS}gcc
+export CC_FOR_HOST = ${CCACHE} ${HOST_PREFIX}gcc
+export CXX_FOR_HOST = ${CCACHE} ${HOST_PREFIX}gcc
export CC_FOR_BUILD = ${BUILD_CC}
-export CC = ${CCACHE} ${CROSS}gcc
-
-binutilsbuild_do_patch () {
- oenote IN binutils patch
- perl -i -p -e 's,#.*define.*ELF_DYNAMIC_INTERPRETER.*".*",#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0",;' `grep -lr ELF_DYNAMIC_INTERPRETER *`
-}
-
-python do_patch () {
- oe.build.exec_func('base_do_patch', d)
- oe.build.exec_func('binutilsbuild_do_patch', d)
-}
+export CC = ${CCACHE} ${HOST_PREFIX}gcc
do_configure () {
oe_runconf