From 0f9af994973b5ef29655ef8af1965ab094369c82 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 8 Jul 2013 11:31:04 -0300 Subject: ath9k-htc-firmware-git: add unstable version with testing changes on libre-testing --- libre-testing/ath9k-htc-firmware-git/LICENSE | 33 +++++++++++ libre-testing/ath9k-htc-firmware-git/PKGBUILD | 81 +++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 libre-testing/ath9k-htc-firmware-git/LICENSE create mode 100644 libre-testing/ath9k-htc-firmware-git/PKGBUILD (limited to 'libre-testing') diff --git a/libre-testing/ath9k-htc-firmware-git/LICENSE b/libre-testing/ath9k-htc-firmware-git/LICENSE new file mode 100644 index 000000000..7668bcb97 --- /dev/null +++ b/libre-testing/ath9k-htc-firmware-git/LICENSE @@ -0,0 +1,33 @@ +Copyright (c) 2013 Qualcomm Atheros, Inc. + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted (subject to the limitations in the +disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. + + * Neither the name of Qualcomm Atheros nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/libre-testing/ath9k-htc-firmware-git/PKGBUILD b/libre-testing/ath9k-htc-firmware-git/PKGBUILD new file mode 100644 index 000000000..d04643491 --- /dev/null +++ b/libre-testing/ath9k-htc-firmware-git/PKGBUILD @@ -0,0 +1,81 @@ +# 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 <