summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-06-18 19:45:29 +0000
committerRichard Purdie <richard@openedhand.com>2007-06-18 19:45:29 +0000
commit59e5d09b78370775710772c24645d8c763833413 (patch)
treeccfb003b3ef9edc000e977c67c97749a4f1e7b7c
parentdd1a46ab44690d0a584d37ca0d49b9d4b62db2c8 (diff)
downloadopenembedded-core-59e5d09b78370775710772c24645d8c763833413.tar.gz
openembedded-core-59e5d09b78370775710772c24645d8c763833413.tar.bz2
openembedded-core-59e5d09b78370775710772c24645d8c763833413.zip
binutils-sdk: Fix broken linker paths with correct sysroot option (and remove unused .inc)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1970 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/binutils/binutils-cross-sdk.inc34
-rw-r--r--meta/packages/binutils/binutils-cross-sdk_2.17.50.0.5.bb3
2 files changed, 2 insertions, 35 deletions
diff --git a/meta/packages/binutils/binutils-cross-sdk.inc b/meta/packages/binutils/binutils-cross-sdk.inc
deleted file mode 100644
index 6cc0579077..0000000000
--- a/meta/packages/binutils/binutils-cross-sdk.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-inherit sdk
-DEPENDS += "flex-native bison-native"
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
-EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
- --program-prefix=${TARGET_PREFIX}"
-
-
-FILES_binutils-cross-sdk-dbg = ""
-do_install () {
- autotools_do_install
-
- # We don't really need these, so we'll remove them...
- rm -rf ${D}${libdir}/ldscripts
-
- # Fix the /usr/${TARGET_SYS}/bin/* links
- for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
- rm -f $l
- ln -sf `echo ${prefix}/${TARGET_SYS}/bin \
- | tr -s / \
- | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
- done
-
- # Install the libiberty header
- install -d ${D}${includedir}
- install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
- install -m 644 ${S}/include/libiberty.h ${D}${includedir}
-
- cd ${D}${bindir}
-
- # Symlinks for ease of running these on the native target
- for p in ${TARGET_SYS}-* ; do
- ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
- done
-}
diff --git a/meta/packages/binutils/binutils-cross-sdk_2.17.50.0.5.bb b/meta/packages/binutils/binutils-cross-sdk_2.17.50.0.5.bb
index 7d3bb6c09c..a045d9bc9c 100644
--- a/meta/packages/binutils/binutils-cross-sdk_2.17.50.0.5.bb
+++ b/meta/packages/binutils/binutils-cross-sdk_2.17.50.0.5.bb
@@ -3,8 +3,9 @@ require binutils_${PV}.bb
inherit sdk
DEPENDS += "flex-native bison-native"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
-EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
+EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
--program-prefix=${TARGET_PREFIX}"
+PR = "r2"
do_stage() {
: