]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils-cross-sdk: Add symlinks to the cross tools instead of shipping duplicate...
authorRichard Purdie <richard@openedhand.com>
Thu, 31 Jan 2008 19:59:57 +0000 (19:59 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 31 Jan 2008 19:59:57 +0000 (19:59 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3654 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/binutils/binutils-cross-sdk.inc

index 4771e29aac801eab9f42b803e51d36c04b19de5c..b545083d94116ee4bb9f46098c1a3bffb45f8ec1 100644 (file)
@@ -4,9 +4,6 @@ FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
 EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
                --program-prefix=${TARGET_PREFIX}"
 
-PACKAGES =+ "${PN}-dbg"
-FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"
-
 do_stage() {
        :
 }
@@ -14,6 +11,13 @@ do_stage() {
 do_install () {
         autotools_do_install
 
+       # Fix the ${prefix}/${TARGET_SYS}/bin/* files to be symlinks
+       rm ${D}${prefix}/${TARGET_SYS}/bin/.debug -Rf
+       rm ${D}${prefix}/${TARGET_SYS}/bin/*
+       for l in ${D}${bindir}/*; do
+               ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`"
+       done
+
         # Install the libiberty header
         install -d ${D}${includedir}
         install -m 644 ${S}/include/ansidecl.h ${D}${includedir}