summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-21 13:17:41 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 12:04:42 +0100
commit76c08cc0d2b36c343f4b37eec8a91f52533b3334 (patch)
treee6fd8a4cb8a79afff2962cb7d2ac607fb18b4409 /meta/recipes-devtools/binutils/binutils.inc
parentcb2a93ee321a277beacc8e9df97a5dc85f66d221 (diff)
downloadpoky-76c08cc0d2b36c343f4b37eec8a91f52533b3334.tar.gz
binutils: use new update-alternatives
(From OE-Core rev: f0ad3c8ce298ca492938e4ded2263c54213786f6) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc18
1 files changed, 10 insertions, 8 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 552b80871b..2440509207 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -146,12 +146,14 @@ do_install_virtclass-native () {
146 rmdir ${D}/${libdir}64 || : 146 rmdir ${D}/${libdir}64 || :
147} 147}
148 148
149pkg_postinst_${PN}-symlinks () { 149inherit update-alternatives
150 update-alternatives --install ${bindir}/ar ar ${TARGET_PREFIX}ar 100
151 update-alternatives --install ${bindir}/strings strings ${TARGET_PREFIX}strings 100
152}
153 150
154pkg_prerm_${PN}-symlinks () { 151ALTERNATIVE_PRIORITY = "100"
155 update-alternatives --remove ar ${TARGET_PREFIX}ar 152
156 update-alternatives --remove strings ${TARGET_PREFIX}strings 153ALTERNATIVE_${PN}-symlinks = "ar strings"
157} 154
155ALTERNATIVE_LINK_NAME[ar] = "${bindir}/ar"
156ALTERNATIVE_TARGET[ar] = "${bindir}/${TARGET_PREFIX}ar"
157
158ALTERNATIVE_LINK_NAME[strings] = "${bindir}/strings"
159ALTERNATIVE_TARGET[strings] = "${bindir}/${TARGET_PREFIX}strings"