From 2f8045ba14153d1665148e3cff527ce4f6bf66e5 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 20 Feb 2014 03:34:20 +0000 Subject: Thu Feb 20 03:30:17 UTC 2014 --- libre/ath9k-htc-firmware/PKGBUILD | 9 +++++++-- libre/ath9k-htc-firmware/fix.patch | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 libre/ath9k-htc-firmware/fix.patch (limited to 'libre') diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD index 172cb97b3..b47b95e0e 100644 --- a/libre/ath9k-htc-firmware/PKGBUILD +++ b/libre/ath9k-htc-firmware/PKGBUILD @@ -1,9 +1,10 @@ # Maintainer: André Silva -# Maintainer: Márcio Silva +# Maintainer: Márcio Silva +# Contributor: Taro pkgname=ath9k-htc-firmware pkgver=1.3.2 -pkgrel=3 +pkgrel=4 pkgdesc='Free firmware files for the Qualcomm Atheros AR7010 and AR9271 USB 802.11n NICs' arch=('any') url=('http://wireless.kernel.org/en/users/Drivers/ath9k_htc') @@ -16,6 +17,9 @@ md5sums=('73c66751151dd47535cb4142477da480' prepare() { + mkdir -p $srcdir/bin + ln -s /usr/bin/xtensa-unknown-elf-as $srcdir/bin/as + export PATH=$srcdir/bin:$PATH cd $srcdir/open-ath9k-htc-firmware-$pkgver/target_firmware mkdir -p build/{k2,magpie} @@ -35,6 +39,7 @@ INCLUDE(CMakeForceCompiler) SET(CMAKE_SYSTEM_PROCESSOR xtensa) SET(COMPILER_PREFIX "xtensa-unknown-elf") SET(CMAKE_FIND_ROOT_PATH /usr/xtensa-unknown-elf) +SET(CMAKE_OBJCOPY /usr/bin/xtensa-unknown-elf-objcopy) CMAKE_FORCE_C_COMPILER(/usr/bin/xtensa-unknown-elf-gcc GNU) EOF diff --git a/libre/ath9k-htc-firmware/fix.patch b/libre/ath9k-htc-firmware/fix.patch new file mode 100644 index 000000000..68a504a8a --- /dev/null +++ b/libre/ath9k-htc-firmware/fix.patch @@ -0,0 +1,22 @@ +diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD +index 172cb97..2a6af01 100644 +--- a/libre/ath9k-htc-firmware/PKGBUILD ++++ b/libre/ath9k-htc-firmware/PKGBUILD +@@ -16,6 +16,9 @@ md5sums=('73c66751151dd47535cb4142477da480' + + prepare() { + ++ mkdir -p $srcdir/bin ++ ln -s /usr/bin/xtensa-unknown-elf-as $srcdir/bin/as ++ export PATH=$srcdir/bin:$PATH + cd $srcdir/open-ath9k-htc-firmware-$pkgver/target_firmware + mkdir -p build/{k2,magpie} + +@@ -35,6 +38,7 @@ INCLUDE(CMakeForceCompiler) + SET(CMAKE_SYSTEM_PROCESSOR xtensa) + SET(COMPILER_PREFIX "xtensa-unknown-elf") + SET(CMAKE_FIND_ROOT_PATH /usr/xtensa-unknown-elf) ++SET(CMAKE_OBJCOPY /usr/bin/xtensa-unknown-elf-objcopy) + + CMAKE_FORCE_C_COMPILER(/usr/bin/xtensa-unknown-elf-gcc GNU) + EOF -- cgit v1.2.3-54-g00ecf