diff options
author | Richard Purdie <richard@openedhand.com> | 2008-01-31 19:59:57 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-01-31 19:59:57 +0000 |
commit | c51985fbd1e3bd406df1c37f927b74e43af71aa8 (patch) | |
tree | 4e99abf9afd78bed62d1db2ad234b059d96ee179 /meta/packages | |
parent | b31d3105840e0817779b00cfd47693e16d05f57b (diff) | |
download | poky-c51985fbd1e3bd406df1c37f927b74e43af71aa8.tar.gz |
binutils-cross-sdk: Add symlinks to the cross tools instead of shipping duplicate binaries. Also simplifies packaging.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3654 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/binutils/binutils-cross-sdk.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/packages/binutils/binutils-cross-sdk.inc b/meta/packages/binutils/binutils-cross-sdk.inc index 4771e29aac..b545083d94 100644 --- a/meta/packages/binutils/binutils-cross-sdk.inc +++ b/meta/packages/binutils/binutils-cross-sdk.inc | |||
@@ -4,9 +4,6 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}" | |||
4 | EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \ | 4 | EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \ |
5 | --program-prefix=${TARGET_PREFIX}" | 5 | --program-prefix=${TARGET_PREFIX}" |
6 | 6 | ||
7 | PACKAGES =+ "${PN}-dbg" | ||
8 | FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug" | ||
9 | |||
10 | do_stage() { | 7 | do_stage() { |
11 | : | 8 | : |
12 | } | 9 | } |
@@ -14,6 +11,13 @@ do_stage() { | |||
14 | do_install () { | 11 | do_install () { |
15 | autotools_do_install | 12 | autotools_do_install |
16 | 13 | ||
14 | # Fix the ${prefix}/${TARGET_SYS}/bin/* files to be symlinks | ||
15 | rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf | ||
16 | rm ${D}${prefix}/${TARGET_SYS}/bin/* | ||
17 | for l in ${D}${bindir}/*; do | ||
18 | ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`" | ||
19 | done | ||
20 | |||
17 | # Install the libiberty header | 21 | # Install the libiberty header |
18 | install -d ${D}${includedir} | 22 | install -d ${D}${includedir} |
19 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | 23 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} |