diff options
author | Richard Purdie <richard@openedhand.com> | 2007-06-18 19:45:29 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-06-18 19:45:29 +0000 |
commit | 59e5d09b78370775710772c24645d8c763833413 (patch) | |
tree | ccfb003b3ef9edc000e977c67c97749a4f1e7b7c /meta/packages/binutils/binutils-cross-sdk.inc | |
parent | dd1a46ab44690d0a584d37ca0d49b9d4b62db2c8 (diff) | |
download | poky-59e5d09b78370775710772c24645d8c763833413.tar.gz |
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
Diffstat (limited to 'meta/packages/binutils/binutils-cross-sdk.inc')
-rw-r--r-- | meta/packages/binutils/binutils-cross-sdk.inc | 34 |
1 files changed, 0 insertions, 34 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 @@ | |||
1 | inherit sdk | ||
2 | DEPENDS += "flex-native bison-native" | ||
3 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}" | ||
4 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | ||
5 | --program-prefix=${TARGET_PREFIX}" | ||
6 | |||
7 | |||
8 | FILES_binutils-cross-sdk-dbg = "" | ||
9 | do_install () { | ||
10 | autotools_do_install | ||
11 | |||
12 | # We don't really need these, so we'll remove them... | ||
13 | rm -rf ${D}${libdir}/ldscripts | ||
14 | |||
15 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
16 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
17 | rm -f $l | ||
18 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
19 | | tr -s / \ | ||
20 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
21 | done | ||
22 | |||
23 | # Install the libiberty header | ||
24 | install -d ${D}${includedir} | ||
25 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
26 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
27 | |||
28 | cd ${D}${bindir} | ||
29 | |||
30 | # Symlinks for ease of running these on the native target | ||
31 | for p in ${TARGET_SYS}-* ; do | ||
32 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
33 | done | ||
34 | } | ||