summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils/binutils-cross-sdk.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/binutils/binutils-cross-sdk.inc')
-rw-r--r--meta/packages/binutils/binutils-cross-sdk.inc10
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}"
4EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \ 4EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
5 --program-prefix=${TARGET_PREFIX}" 5 --program-prefix=${TARGET_PREFIX}"
6 6
7PACKAGES =+ "${PN}-dbg"
8FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"
9
10do_stage() { 7do_stage() {
11 : 8 :
12} 9}
@@ -14,6 +11,13 @@ do_stage() {
14do_install () { 11do_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}