# Maintainer: André Silva # Maintainer: Márcio Silva pkgname=ath9k-htc-firmware-git pkgver=$(LC_ALL=C date -u +%Y%m%d) 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=('BSD') makedepends=('git' 'cmake' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc') conflicts=('ath9k-htc-firmware') provides=('ath9k-htc-firmware') source=("git://github.com/olerem/open-ath9k-htc-firmware" #"git://github.com/qca/open-ath9k-htc-firmware" 'LICENSE') md5sums=('SKIP' '5163b2711bc481c77045850610b7dd31') prepare() { cd $srcdir/open-ath9k-htc-firmware/target_firmware mkdir -p build/{k2,magpie} } build() { cd $srcdir/open-ath9k-htc-firmware # use suspend_fix branch to fix "ath9k_htc: Target is unresponsive" git checkout suspend_fix export CTARGET="xtensa-unknown-elf" export CFLAGS="-mtext-section-literals -O2 -pipe --param=ssp-buffer-size=4" export CXXFLAGS="${CFLAGS}" cat > target_firmware/build/toolchain.cmake <