summaryrefslogtreecommitdiff
path: root/cross/cross-binutils
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-23 10:57:26 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-23 10:57:26 -0300
commit074fef89cdad7e17b4c559add3fa4e309fb1fc23 (patch)
treea4e2b756932e4fe89dd4d84ae2f2d92c82db45d1 /cross/cross-binutils
parent795ea5b0ae2d09ec7bc095a8a69b79481c8a2be1 (diff)
add open-ath9k-htc-firmware patch on gcc and binutils
Diffstat (limited to 'cross/cross-binutils')
-rw-r--r--cross/cross-binutils/PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/cross/cross-binutils/PKGBUILD b/cross/cross-binutils/PKGBUILD
index 9eef49ede..5d2bd338d 100644
--- a/cross/cross-binutils/PKGBUILD
+++ b/cross/cross-binutils/PKGBUILD
@@ -125,7 +125,7 @@ fi
_pkgname=binutils
pkgname=$_target-$_pkgname
pkgver=2.24
-pkgrel=7.1
+pkgrel=7.2
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/$_pkgname/"
@@ -137,14 +137,16 @@ provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
install=$_pkgname.install
source=(ftp://ftp.gnu.org/gnu/$_pkgname/$_pkgname-${pkgver}.tar.bz2{,.sig}
- binutils-2.24-lto-testsuite.patch
- binutils-2.24-gold-testsuite-plugin.patch
- binutils-2.24-shared-pie.patch)
+ $_pkgname-2.24-lto-testsuite.patch
+ $_pkgname-2.24-gold-testsuite-plugin.patch
+ $_pkgname-2.24-shared-pie.patch
+ $_pkgname-xtensa.patch::https://raw.githubusercontent.com/qca/open-ath9k-htc-firmware/1.3.2/local/patches/$_pkgname.patch)
md5sums=('e0f71a7b2ddab0f8612336ac81d9636b'
'SKIP'
'e68a1f221545f082baa5bd417cd077af'
'e46bbb03abaa5db58c12247644dc4857'
- 'ec59461c4febab9cfe1c1ef33326bc50')
+ 'ec59461c4febab9cfe1c1ef33326bc50'
+ '7077126d96e9a755a0eaddb5505efe68')
validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93')
prepare() {
@@ -154,13 +156,16 @@ prepare() {
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
# fix lto testsuite with gcc-4.9 - commits b35d44f1 and 37a6ac44
- patch -p1 -i $srcdir/binutils-2.24-lto-testsuite.patch
+ patch -p1 -i $srcdir/$_pkgname-2.24-lto-testsuite.patch
# fix gold testsuite with gcc-4.9 - commit ae447ddd
- patch -p1 -i $srcdir/binutils-2.24-gold-testsuite-plugin.patch
+ patch -p1 -i $srcdir/$_pkgname-2.24-gold-testsuite-plugin.patch
# fix issues with -static -fPIE -pie - commit 4199e3b8
- patch -p1 -i $srcdir/binutils-2.24-shared-pie.patch
+ patch -p1 -i $srcdir/$_pkgname-2.24-shared-pie.patch
+
+ # open-ath9k-htc-firmware patch on xtensa-unknown-elf
+ [[ $_target == xtensa-unknown-elf ]] && patch -p1 -i ${srcdir}/$_pkgname-xtensa.patch
mkdir ${srcdir}/$_pkgname-build
}