# Maintainer: André Silva # Maintainer: Márcio Silva pkgname=ath9k-htc-firmware pkgver=1.4.0 pkgrel=1 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' license=('BSD3') makedepends=('cmake' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc') source=("https://github.com/qca/open-ath9k-htc-firmware/archive/$pkgver.tar.gz" 'LICENSE') md5sums=('503f75163649a7e52a64737991a41ca2' '5163b2711bc481c77045850610b7dd31') prepare() { cd $srcdir/open-ath9k-htc-firmware-$pkgver/target_firmware mkdir -p build/{k2,magpie} # fix gcc 4.8 aggressive loop optimizations "-faggressive-loop-optimizations" #sed -i '\|mPhyCtrlState.validPhyRateIndex| s|= 0|= 0|' wlan/ratectrl_11n_ln.c } build() { cd $srcdir/open-ath9k-htc-firmware-$pkgver export CTARGET="xtensa-unknown-elf" export CC="xtensa-unknown-elf" export CFLAGS="-mtext-section-literals -O2 -pipe --param=ssp-buffer-size=4 -fno-aggressive-loop-optimizations" export CXXFLAGS="${CFLAGS}" cat > target_firmware/build/toolchain.cmake <