# Maintainer: André Silva # Maintainer: Márcio Silva pkgname=ath9k-htc-firmware 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') source=("git://github.com/qca/open-ath9k-htc-firmware") md5sums=('SKIP') prepare() { cd $srcdir/open-ath9k-htc-firmware/target_firmware mkdir -p build/{k2,magpie} } build() { cd $srcdir/open-ath9k-htc-firmware export CBUILD=$CHOST export CHOST="xtensa-unknown-elf" export CTARGET="xtensa-unknown-elf" export CFLAGS="-mtext-section-literals -O2 -pipe --param=ssp-buffer-size=4" export CXXFLAGS="${CFLAGS}" export CC=/usr/bin/xtensa-unknown-elf-gcc export CPP=/usr/bin/xtensa-unknown-elf-cpp export AR=/usr/bin/xtensa-unknown-elf-ar export AS=/usr/bin/xtensa-unknown-elf-as export LD=/usr/bin/xtensa-unknown-elf-ld export NM=/usr/bin/xtensa-unknown-elf-nm export OBJCOPY=/usr/bin/xtensa-unknown-elf-objcopy export OBJDUMP=/usr/bin/xtensa-unknown-elf-objdump export RANLIB=/usr/bin/xtensa-unknown-elf-ranlib export STRIP=/usr/bin/xtensa-unknown-elf-strip cat > target_firmware/build/toolchain.cmake <