From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/cross-arm-elf-binutils/PKGBUILD | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 community/cross-arm-elf-binutils/PKGBUILD (limited to 'community/cross-arm-elf-binutils') diff --git a/community/cross-arm-elf-binutils/PKGBUILD b/community/cross-arm-elf-binutils/PKGBUILD new file mode 100644 index 000000000..406f2d7b9 --- /dev/null +++ b/community/cross-arm-elf-binutils/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 35548 2010-12-21 16:53:03Z spupykin $ +# Maintainer: Sergej Pupykin + +pkgname=cross-arm-elf-binutils +pkgver=2.21 +pkgrel=2 +_xprefix=/usr +pkgdesc="A set of programs to assemble and manipulate binary and object files" +arch=(i686 x86_64) +license=(GPL) +options=(!libtool) +url="http://sources.redhat.com/binutils" +depends=('glibc' 'zlib') +source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.gz) +md5sums=('f11e10f312a58d82f14bf571dd9ff91c') + +build() { + cd $srcdir/binutils-${pkgver} + + [ $NOEXTRACT -eq 1 ] || ./configure --prefix=${_xprefix} \ + --program-prefix=arm-elf- \ + --enable-shared \ + --disable-multilib \ + --with-lib-path=${_xprefix}/lib/binutils/arm-elf \ + --disable-nls \ + --target=arm-elf \ + --host=$CHOST \ + --build=$CHOST \ + --with-sysroot=/usr/$CHOST/arm-elf \ +# --with-build-sysroot=/usr/i686-pc-linux-gnu/arm-elf/ + +# mkdir -p $pkgdir/${_xprefix}/lib/binutils +# sed -i 's|know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));|{know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));}|' gas/config/tc-arm.c + + make configure-host + make tooldir=$pkgdir/${_xprefix} + make prefix=$pkgdir/${_xprefix} tooldir=$pkgdir/${_xprefix} install + + mkdir -p $pkgdir/${_xprefix}/lib/binutils/arm-elf + cp -v include/libiberty.h $pkgdir/${_xprefix}/lib/binutils/arm-elf + + rm -f $pkgdir/${_xprefix}/man/man1/{dlltool,nlmconv,windres}* + + rm -f $pkgdir/usr/bin/ar + rm -f $pkgdir/usr/bin/as + rm -f $pkgdir/usr/bin/ld + rm -f $pkgdir/usr/bin/nm + rm -f $pkgdir/usr/bin/objdump + rm -f $pkgdir/usr/bin/ranlib + rm -f $pkgdir/usr/bin/strip + rm -f $pkgdir/usr/bin/objcopy + rm -f $pkgdir/usr/lib/libiberty.a + rm -rf $pkgdir/usr/share +} -- cgit v1.2.3-54-g00ecf