diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-07-07 18:51:57 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-07-07 18:51:57 -0300 |
commit | 71382135d5608d2819b6a3c2a8138a2e4aa04bde (patch) | |
tree | ce54a70de8f37687008f07ce992315604fede785 /libre/ath9k-htc-firmware/PKGBUILD | |
parent | d8b392eb683b29a38c9b837a1af24383edd93d3e (diff) | |
download | abslibre-71382135d5608d2819b6a3c2a8138a2e4aa04bde.tar.gz abslibre-71382135d5608d2819b6a3c2a8138a2e4aa04bde.tar.bz2 abslibre-71382135d5608d2819b6a3c2a8138a2e4aa04bde.zip |
ath9k-htc-firmware-20130707-1: fix issues on PKGBUILD
Diffstat (limited to 'libre/ath9k-htc-firmware/PKGBUILD')
-rw-r--r-- | libre/ath9k-htc-firmware/PKGBUILD | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/libre/ath9k-htc-firmware/PKGBUILD b/libre/ath9k-htc-firmware/PKGBUILD index d323ef8d2..f79aae173 100644 --- a/libre/ath9k-htc-firmware/PKGBUILD +++ b/libre/ath9k-htc-firmware/PKGBUILD @@ -3,7 +3,7 @@ pkgname=ath9k-htc-firmware pkgver=$(LC_ALL=C date -u +%Y%m%d) -pkgrel=2 +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') @@ -25,37 +25,16 @@ 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 <<EOF INCLUDE(CMakeForceCompiler) -SET(CMAKE_CROSSCOMPILING) -SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_PROCESSOR xtensa) -SET(CMAKE_HOST_SYSTEM_PROCESSOR xtensa) SET(COMPILER_PREFIX "xtensa-unknown-elf") -SET(GNU_HOST "xtensa-unknown-elf") SET(CMAKE_FIND_ROOT_PATH /usr/xtensa-unknown-elf) -SET(CMAKE_C_COMPILER /usr/bin/xtensa-unknown-elf-gcc) -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY FIRST) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE FIRST) CMAKE_FORCE_C_COMPILER(/usr/bin/xtensa-unknown-elf-gcc GNU) EOF @@ -72,37 +51,8 @@ EOF cd $srcdir/open-ath9k-htc-firmware/target_firmware - sed -i 's|/usr/bin/gcc|/usr/bin/xtensa-unknown-elf-gcc|g; - s|/usr/bin/cpp|/usr/bin/xtensa-unknown-elf-cpp|g; - s|/usr/bin/ar|/usr/bin/xtensa-unknown-elf-ar|g; - s|/usr/bin/as|/usr/bin/xtensa-unknown-elf-as|g; - s|/usr/bin/ld|/usr/bin/xtensa-unknown-elf-ld|g; - s|/usr/bin/nm|/usr/bin/xtensa-unknown-elf-nm|g; - s|/usr/bin/objcopy|/usr/bin/xtensa-unknown-elf-objcopy|g; - s|/usr/bin/objdump|/usr/bin/xtensa-unknown-elf-objdump|g; - s|/usr/bin/ranlib|/usr/bin/xtensa-unknown-elf-ranlib|g; - s|/usr/bin/strip|/usr/bin/xtensa-unknown-elf-strip|g; - s|/usr/local|/usr|g; - ' $(grep -rlI /usr/bin/gcc) \ - $(grep -rlI /usr/bin/cpp) \ - $(grep -rlI /usr/bin/ld) \ - $(grep -rlI /usr/bin/ar) \ - $(grep -rlI /usr/bin/as) \ - $(grep -rlI /usr/bin/nm) \ - $(grep -rlI /usr/bin/objcopy) \ - $(grep -rlI /usr/bin/objdump) \ - $(grep -rlI /usr/bin/ranlib) \ - $(grep -rlI /usr/bin/strip) \ - $(grep -rlI /usr/local) - - make \ - CC="${CC}" CPP="${CPP}" AR="${AR}" AS="${AS}" LD="${LD}" NM="${NM}" \ - OBJCOPY="${OBJCOPY}" OBJDUMP="${OBJDUMP}" RANLIB="${RANLIB}" STRIP="${STRIP}" \ - -C build/k2 - make \ - CC="${CC}" CPP="${CPP}" AR="${AR}" AS="${AS}" LD="${LD}" NM="${NM}" \ - OBJCOPY="${OBJCOPY}" OBJDUMP="${OBJDUMP}" RANLIB="${RANLIB}" STRIP="${STRIP}" \ - -C build/magpie + make -C build/k2 + make -C build/magpie } |