aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-05-03 08:08:17 -0700
committerThomas Zimmermann <zimmermann@vdm-design.de>2011-09-10 15:51:24 +0200
commite4ed27cdcb0c3ae446162b888a1a0199513f6337 (patch)
treeafe617692e8b178ee71aa1782f91b038afd6d826
parentbacd5112ba61071753ea2c065af0f1717b19e8ee (diff)
downloadopenembedded-e4ed27cdcb0c3ae446162b888a1a0199513f6337.zip
openembedded-e4ed27cdcb0c3ae446162b888a1a0199513f6337.tar.gz
openembedded-e4ed27cdcb0c3ae446162b888a1a0199513f6337.tar.bz2
binutils.inc: Switch to TARGET_PREFIX not TARGET_SYS
When TARGET_PREFIX and TARGET_SYS didn't match up, the symlinks and update-alternatives weren't working. TARGET_PREFIX is what we use when configuring so it's what we should be using here. Signed-off-by: Tom Rini <tom_rini@mentor.com>
-rw-r--r--recipes/binutils/binutils.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes/binutils/binutils.inc b/recipes/binutils/binutils.inc
index ab9e457..ddbb6fc 100644
--- a/recipes/binutils/binutils.inc
+++ b/recipes/binutils/binutils.inc
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/"
SECTION = "devel"
LICENSE = "GPL"
-INC_PR = "r13"
+INC_PR = "r14"
COMPATIBLE_TARGET_SYS ?= "(?!nios2)"
@@ -106,8 +106,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
@@ -115,13 +115,13 @@ do_install () {
pkg_postinst_${PN}-symlinks () {
- update-alternatives --install ${bindir}/ar ar ${TARGET_SYS}-ar 100
- update-alternatives --install ${bindir}/strings strings ${TARGET_SYS}-strings 100
+ update-alternatives --install ${bindir}/ar ar ${TARGET_PREFIX}ar 100
+ update-alternatives --install ${bindir}/strings strings ${TARGET_PREFIX}strings 100
}
pkg_prerm_${PN}-symlinks () {
- update-alternatives --remove ar ${TARGET_SYS}-ar
- update-alternatives --remove strings ${TARGET_SYS}-strings
+ update-alternatives --remove ar ${TARGET_PREFIX}ar
+ update-alternatives --remove strings ${TARGET_PREFIX}strings
}