From 1e0563398a58d5aa5e39574c223a1f7d5e89046b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Thu, 4 Jul 2013 21:55:11 -0300 Subject: ath9k-htc-firmware: add new package to libre repo --- libre/ath9k-htc-firmware/PKGBUILD | 124 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 libre/ath9k-htc-firmware/PKGBUILD (limited to 'libre/ath9k-htc-firmware/PKGBUILD') diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD new file mode 100644 index 000000000..f712395f4 --- /dev/null +++ b/libre/ath9k-htc-firmware/PKGBUILD @@ -0,0 +1,124 @@ +# 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() { + + # create firmware folder to put the free firmware files there + install -d -m755 $pkgdir/usr/lib/firmware + + cd $srcdir/open-ath9k-htc-firmware/target_firmware + mkdir -p build/{k2,magpie} $pkgdir/usr/lib/firmware + +} + +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 <