summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorGerald Britton <gbritton@doomcom.org>2004-01-29 05:36:32 +0000
committerGerald Britton <gbritton@doomcom.org>2004-01-29 05:36:32 +0000
commit735cbb7842944472dd592b33967144512dbf2d48 (patch)
treee1e0d7f0711ececcea6c852ae269a3b2580f9bb9 /binutils
parent597eca0bde1fc33dbf4a02d1ef43aaaa3c4cc9a8 (diff)
fix targetting on binutils builds
BKrev: 40189be0k6iiWIC8ZxU34b8uCsjSsw
Diffstat (limited to 'binutils')
-rw-r--r--binutils/binutils-uclibc_2.14.90.0.6.oe5
-rw-r--r--binutils/binutils-uclibc_2.14.90.0.7.oe18
-rw-r--r--binutils/binutils-uclibc_2.14.90.0.8.oe18
-rw-r--r--binutils/binutils_2.14.90.0.6.oe5
-rw-r--r--binutils/binutils_2.14.90.0.7.oe5
-rw-r--r--binutils/binutils_2.14.90.0.8.oe5
6 files changed, 56 insertions, 0 deletions
diff --git a/binutils/binutils-uclibc_2.14.90.0.6.oe b/binutils/binutils-uclibc_2.14.90.0.6.oe
index 200477d0da..d483a1f71d 100644
--- a/binutils/binutils-uclibc_2.14.90.0.6.oe
+++ b/binutils/binutils-uclibc_2.14.90.0.6.oe
@@ -1,6 +1,11 @@
include binutils_${PV}.oe
FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
+# This will ONLY build to this target
+TARGET_VENDOR := -uclibc
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
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 *`
diff --git a/binutils/binutils-uclibc_2.14.90.0.7.oe b/binutils/binutils-uclibc_2.14.90.0.7.oe
index e69de29bb2..d483a1f71d 100644
--- a/binutils/binutils-uclibc_2.14.90.0.7.oe
+++ b/binutils/binutils-uclibc_2.14.90.0.7.oe
@@ -0,0 +1,18 @@
+include binutils_${PV}.oe
+FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
+
+# This will ONLY build to this target
+TARGET_VENDOR := -uclibc
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
+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)
+}
+
diff --git a/binutils/binutils-uclibc_2.14.90.0.8.oe b/binutils/binutils-uclibc_2.14.90.0.8.oe
index e69de29bb2..d483a1f71d 100644
--- a/binutils/binutils-uclibc_2.14.90.0.8.oe
+++ b/binutils/binutils-uclibc_2.14.90.0.8.oe
@@ -0,0 +1,18 @@
+include binutils_${PV}.oe
+FILESDIR = ${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}
+
+# This will ONLY build to this target
+TARGET_VENDOR := -uclibc
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
+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)
+}
+
diff --git a/binutils/binutils_2.14.90.0.6.oe b/binutils/binutils_2.14.90.0.6.oe
index 211291e420..94657cbf98 100644
--- a/binutils/binutils_2.14.90.0.6.oe
+++ b/binutils/binutils_2.14.90.0.6.oe
@@ -4,6 +4,11 @@ DESCRIPTION := A GNU collection of binary utilities
LICENSE := GPL
MAINTAINER := Gerald Britton <gbritton@doomcom.org>
+# This will ONLY build to this target
+TARGET_VENDOR :=
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
DEPENDS := virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc \
virtual/libc patcher
diff --git a/binutils/binutils_2.14.90.0.7.oe b/binutils/binutils_2.14.90.0.7.oe
index 211291e420..94657cbf98 100644
--- a/binutils/binutils_2.14.90.0.7.oe
+++ b/binutils/binutils_2.14.90.0.7.oe
@@ -4,6 +4,11 @@ DESCRIPTION := A GNU collection of binary utilities
LICENSE := GPL
MAINTAINER := Gerald Britton <gbritton@doomcom.org>
+# This will ONLY build to this target
+TARGET_VENDOR :=
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
DEPENDS := virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc \
virtual/libc patcher
diff --git a/binutils/binutils_2.14.90.0.8.oe b/binutils/binutils_2.14.90.0.8.oe
index 2fa6068286..bc564d8fdd 100644
--- a/binutils/binutils_2.14.90.0.8.oe
+++ b/binutils/binutils_2.14.90.0.8.oe
@@ -4,6 +4,11 @@ DESCRIPTION := A GNU collection of binary utilities
LICENSE := GPL
MAINTAINER := Gerald Britton <gbritton@doomcom.org>
+# This will ONLY build to this target
+TARGET_VENDOR :=
+TARGET_SYS := ${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}
+TARGET_PREFIX := ${TARGET_SYS}-
+
DEPENDS := virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc \
virtual/libc patcher