binutils: use TARGET_PREFIX for the convenience links
authorChris Larson <chris_larson@mentor.com>
Tue, 30 Aug 2011 00:27:43 +0000 (00:27 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:14:36 +0000 (08:14 -0800)
This ensures it works even if TARGET_PREFIX != ${TARGET_SYS}-

(From meta-openembedded rev: 33bd83fa53e50c7eaece6e5e0c072ba54e56e2b4)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/recipes-devtools/binutils/binutils.inc

index d9e859e..f8fc7b8 100644 (file)
@@ -109,8 +109,8 @@ do_install () {
        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}-,,`
+       for p in ${TARGET_PREFIX}* ; do
+               ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,`
        done
 
        rm ${D}${bindir}/ar ${D}${bindir}/strings