summaryrefslogtreecommitdiff
path: root/packages/binutils
diff options
context:
space:
mode:
authorDavid Karlstrom <daka@thg.se>2005-07-23 13:36:38 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-23 13:36:38 +0000
commit5e01906b8433bc6a8c03be2e31758589641124c9 (patch)
treec400790ffa5ebb896c464da84752a4937d889400 /packages/binutils
parent57808a977840bce11bdbab373d9eacaba7ef88c1 (diff)
Updated to use update-alternatives and fix some FHS bugs
Diffstat (limited to 'packages/binutils')
-rw-r--r--packages/binutils/binutils.inc17
-rw-r--r--packages/binutils/binutils_2.16.bb2
2 files changed, 16 insertions, 3 deletions
diff --git a/packages/binutils/binutils.inc b/packages/binutils/binutils.inc
index 731f58ba2c..e544e9ef53 100644
--- a/packages/binutils/binutils.inc
+++ b/packages/binutils/binutils.inc
@@ -16,7 +16,6 @@ FILES_${PN}-dev = " \
FILES_${PN}-symlinks = " \
${bindir}/addr2line \
- ${bindir}/ar \
${bindir}/as \
${bindir}/c++filt \
${bindir}/gprof \
@@ -27,7 +26,6 @@ FILES_${PN}-symlinks = " \
${bindir}/ranlib \
${bindir}/readelf \
${bindir}/size \
- ${bindir}/strings \
${bindir}/strip"
EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
@@ -101,4 +99,19 @@ do_install () {
for p in ${TARGET_SYS}-* ; do
ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
done
+
+ rm ${D}${bindir}/ar ${D}${bindir}/strings
+}
+
+
+pkg_postinst_${PN}-symlinks () {
+ update-alternatives --install ${bindir}/ar ar ${TARGET_SYS}-ar 100
+ update-alternatives --install ${bindir}/strings strings ${TARGET_SYS}-strings 100
}
+
+
+pkg_prerm_${PN}-symlinks () {
+ update-alternatives --remove ar ${TARGET_SYS}-ar
+ update-alternatives --remove strings ${TARGET_SYS}-strings
+}
+
diff --git a/packages/binutils/binutils_2.16.bb b/packages/binutils/binutils_2.16.bb
index 27e2f8983c..bb280f0fb5 100644
--- a/packages/binutils/binutils_2.16.bb
+++ b/packages/binutils/binutils_2.16.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/binutils/"
SECTION = "devel"
LICENSE = "GPL"
MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
-PR = "r0"
+PR = "r1"
DEFAULT_PREFERENCE_linux-uclibc = "-1"