[oe-commits] Chris Larson : binutils: use TARGET_PREFIX for the convenience links

git version control git at git.openembedded.org
Wed Aug 31 12:49:35 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 33bd83fa53e50c7eaece6e5e0c072ba54e56e2b4
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=33bd83fa53e50c7eaece6e5e0c072ba54e56e2b4

Author: Chris Larson <chris_larson at mentor.com>
Date:   Tue Aug 30 00:27:43 2011 +0000

binutils: use TARGET_PREFIX for the convenience links

This ensures it works even if TARGET_PREFIX != ${TARGET_SYS}-

Signed-off-by: Chris Larson <chris_larson at mentor.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 meta-oe/recipes-devtools/binutils/binutils.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-devtools/binutils/binutils.inc b/meta-oe/recipes-devtools/binutils/binutils.inc
index d9e859e..f8fc7b8 100644
--- a/meta-oe/recipes-devtools/binutils/binutils.inc
+++ b/meta-oe/recipes-devtools/binutils/binutils.inc
@@ -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





More information about the Openembedded-commits mailing list