summaryrefslogtreecommitdiff
path: root/cross/xtensa-unknown-elf-binutils/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-20 01:33:27 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-20 01:34:49 -0200
commitf0078a2177e50f86f41a79a328249ddcd584a3c8 (patch)
treea2b9e35721b7feaa141b6614cee024ec7e46c517 /cross/xtensa-unknown-elf-binutils/PKGBUILD
parent394054305678bcd78c7f4c855024d4ffed736a98 (diff)
downloadabslibre-f0078a2177e50f86f41a79a328249ddcd584a3c8.tar.gz
abslibre-f0078a2177e50f86f41a79a328249ddcd584a3c8.tar.bz2
abslibre-f0078a2177e50f86f41a79a328249ddcd584a3c8.zip
Taro's based idea moved from ath9k-htc-firmware to xtensa-unknown-elf-{binutils,gcc}
Diffstat (limited to 'cross/xtensa-unknown-elf-binutils/PKGBUILD')
-rw-r--r--cross/xtensa-unknown-elf-binutils/PKGBUILD25
1 files changed, 23 insertions, 2 deletions
diff --git a/cross/xtensa-unknown-elf-binutils/PKGBUILD b/cross/xtensa-unknown-elf-binutils/PKGBUILD
index 7b864eeb6..76d6bda78 100644
--- a/cross/xtensa-unknown-elf-binutils/PKGBUILD
+++ b/cross/xtensa-unknown-elf-binutils/PKGBUILD
@@ -1,20 +1,23 @@
# $Id: PKGBUILD 182407 2013-04-10 07:34:20Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
-# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+# Maintainer (Parabola): Márcio Silva <coadde@parabola.nu>
+# Contributor (Parabola): Taro <taro-k@movasense.com>
_pkgname=binutils
_target="xtensa-unknown-elf"
pkgname=${_target}-${_pkgname}
pkgver=2.23.2
-pkgrel=2.5
+pkgrel=2.7
pkgdesc="A set of programs to assemble and manipulate binary and object files for the Xtensa architecture"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=("${_target}-base-devel")
depends=('glibc>=2.17' 'zlib')
+conflicts=binutils
+provides="binutils=2.24"
options=('!libtool' '!distcc' '!ccache')
install=${_target}-binutils.install
source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
@@ -70,4 +73,22 @@ package() {
rm $pkgdir/usr/lib/libiberty.a
rm $pkgdir/usr/$CHOST/${_target}/include/* && rmdir $pkgdir/usr/$CHOST/${_target}/include
rm $pkgdir/usr/share/info/* && rmdir $pkgdir/usr/share/info
+
+ # many packages expect those symlinks
+ ln -s ${_target}-addr2line $pkgdir/usr/bin/addr2line
+ ln -s ${_target}-ar $pkgdir/usr/bin/ar
+ ln -s ${_target}-as $pkgdir/usr/bin/as
+ ln -s ${_target}-c++filt $pkgdir/usr/bin/c++filt
+ ln -s ${_target}-elfedit $pkgdir/usr/bin/elfedit
+ ln -s ${_target}-gprof $pkgdir/usr/bin/gprof
+ ln -s ${_target}-ld $pkgdir/usr/bin/ld
+ ln -s ${_target}-ld.bfd $pkgdir/usr/bin/ld.bfd
+ ln -s ${_target}-nm $pkgdir/usr/bin/nm
+ ln -s ${_target}-objcopy $pkgdir/usr/bin/objcopy
+ ln -s ${_target}-objdump $pkgdir/usr/bin/objdump
+ ln -s ${_target}-ranlib $pkgdir/usr/bin/ranlib
+ ln -s ${_target}-readelf $pkgdir/usr/bin/readelf
+ ln -s ${_target}-size $pkgdir/usr/bin/size
+ ln -s ${_target}-strings $pkgdir/usr/bin/strings
+ ln -s ${_target}-strip $pkgdir/usr/bin/strip
}