From fac2009605dfcb3aec1d99cad2d91c267a819f1b Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 29 Jun 2013 04:32:46 -0300 Subject: linux-libre-firmware-3.9-2: include new free firmware file called ath9k_htc inside linux-libre-firmware --- libre/linux-libre-firmware/PKGBUILD | 52 +++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 8 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 99c54a1b2..fc555c7b9 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -3,11 +3,13 @@ pkgname=linux-libre-firmware pkgver=3.9 -pkgrel=1 +pkgrel=2 pkgdesc='Free firmware files for Linux-libre' arch=('any') -url='http://linux-libre.fsfla.org/' -license=('GPL2') +url=('http://linux-libre.fsfla.org/' + 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') +license=('GPL2' 'BSD') +makedepends=('git' 'wget') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' @@ -35,15 +37,49 @@ replaces=('linux-firmware' 'rt2870usb-fw' 'rt2x00-rt61-fw' 'rt2x00-rt71w-fw') -source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz") -md5sums=('120df29f88622dabf7015a22c7cc8e25') +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz" + "git://github.com/qca/open-ath9k-htc-firmware") +md5sums=('120df29f88622dabf7015a22c7cc8e25' + 'SKIP') + +prepare() { + + cd $srcdir/open-ath9k-htc-firmware + + # prepare toolchain to compile ath9k-htc firmware + make toolchain + +} + +build() { + + cd $srcdir/open-ath9k-htc-firmware + + # create firmware folder to put the free firmware files there + mkdir -p $pkgdir/usr/lib/firmware + + # compile ath9k-htc-firmware + make -C target_firmware + + mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware -package() { cd $srcdir/linux-$pkgver - + + # compile free firmware files of linux-libre source code make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install - # move WHENCE file to linux-firmware license folder +} + +package() { + install -d -m755 $pkgdir/usr/share/licenses/$pkgname + + # move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder + cd $srcdir/open-ath9k-htc-firmware-1.3.2 + mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware + + # move WHENCE file to linux-firmware license folder + cd $srcdir/linux-$pkgver mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname + } -- cgit v1.2.3-54-g00ecf From de1b72b31d5d779033c03c5eb124e434c45b8d1c Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 29 Jun 2013 05:07:52 -0300 Subject: linux-libre-firmware: disable build error on binutils to create toolchain for free atheros firmware --- libre/linux-libre-firmware/PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index fc555c7b9..73d05ac86 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -46,6 +46,9 @@ prepare() { cd $srcdir/open-ath9k-htc-firmware + # disable build error + sed 's|BINUTILS,|BINUTILS,\n\t\t--disable-werror,|' Makefile + # prepare toolchain to compile ath9k-htc firmware make toolchain -- cgit v1.2.3-54-g00ecf From 60b4c7e440c3b522586acd0d53125c7db0144950 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 29 Jun 2013 05:43:57 -0300 Subject: put more sed commands to disable build error --- libre/linux-libre-firmware/PKGBUILD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 73d05ac86..34465d446 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer: André Silva +ç# Maintainer: André Silva # Contributor: Márcio Silva pkgname=linux-libre-firmware @@ -47,7 +47,11 @@ prepare() { cd $srcdir/open-ath9k-htc-firmware # disable build error - sed 's|BINUTILS,|BINUTILS,\n\t\t--disable-werror,|' Makefile + sed -i 's|GMP,|GMP,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile + sed -i 's|MPFR,|MPFR,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile + sed -i 's|MPC,|MPC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile + sed -i 's|BINUTILS,|BINUTILS,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile + sed -i 's|GCC,|GCC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile # prepare toolchain to compile ath9k-htc firmware make toolchain -- cgit v1.2.3-54-g00ecf From 87169a2093f4b2b990fd53e48b2ce98a571ef1cb Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Sat, 29 Jun 2013 05:52:14 -0300 Subject: linux-libre-firmware: fixing type and sed path --- libre/linux-libre-firmware/PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 34465d446..4b46592d0 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -1,4 +1,4 @@ -ç# Maintainer: André Silva +# Maintainer: André Silva # Contributor: Márcio Silva pkgname=linux-libre-firmware @@ -47,11 +47,12 @@ prepare() { cd $srcdir/open-ath9k-htc-firmware # disable build error - sed -i 's|GMP,|GMP,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile - sed -i 's|MPFR,|MPFR,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile - sed -i 's|MPC,|MPC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile - sed -i 's|BINUTILS,|BINUTILS,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile - sed -i 's|GCC,|GCC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warning,|' Makefile + sed -i 's|GMP,|GMP,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|MPFR,|MPFR,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|MPC,|MPC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|BINUTILS,|BINUTILS,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + s|GCC,|GCC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; + ' Makefile # prepare toolchain to compile ath9k-htc firmware make toolchain -- cgit v1.2.3-54-g00ecf From addf0caba72d862bf5b9f7f02cb2c1663c6ae7c5 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 3 Jul 2013 20:25:38 -0300 Subject: linux-libre-firmware: fix pkgver due that it is from 2 source codes --- libre/linux-libre-firmware/PKGBUILD | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 4b46592d0..2f87714aa 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -2,14 +2,15 @@ # Contributor: Márcio Silva pkgname=linux-libre-firmware -pkgver=3.9 -pkgrel=2 +_pkgver=3.9 +pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgrel=1 pkgdesc='Free firmware files for Linux-libre' arch=('any') url=('http://linux-libre.fsfla.org/' 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') license=('GPL2' 'BSD') -makedepends=('git' 'wget') +makedepends=('git' 'xtensa-unknown-elf-gcc') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' @@ -42,23 +43,6 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux md5sums=('120df29f88622dabf7015a22c7cc8e25' 'SKIP') -prepare() { - - cd $srcdir/open-ath9k-htc-firmware - - # disable build error - sed -i 's|GMP,|GMP,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; - s|MPFR,|MPFR,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; - s|MPC,|MPC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; - s|BINUTILS,|BINUTILS,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; - s|GCC,|GCC,\n\t\t--disable-werror, \\\n\t\t--disable-fatal-warnings,|; - ' Makefile - - # prepare toolchain to compile ath9k-htc firmware - make toolchain - -} - build() { cd $srcdir/open-ath9k-htc-firmware -- cgit v1.2.3-54-g00ecf From 269ee85110ca3b1f5693d2d3a0c4711ab76de088 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 3 Jul 2013 22:31:58 -0300 Subject: linux-libre-firmware: fix issues on PKGBUILD --- libre/linux-libre-firmware/PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 2f87714aa..eb82af49b 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -38,7 +38,7 @@ replaces=('linux-firmware' 'rt2870usb-fw' 'rt2x00-rt61-fw' 'rt2x00-rt71w-fw') -source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz" +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$_pkgver-gnu/linux-libre-$_pkgver-gnu.tar.xz" "git://github.com/qca/open-ath9k-htc-firmware") md5sums=('120df29f88622dabf7015a22c7cc8e25' 'SKIP') @@ -48,14 +48,14 @@ build() { cd $srcdir/open-ath9k-htc-firmware # create firmware folder to put the free firmware files there - mkdir -p $pkgdir/usr/lib/firmware + install -d -m755 $pkgdir/usr/lib/firmware # compile ath9k-htc-firmware make -C target_firmware mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware - cd $srcdir/linux-$pkgver + cd $srcdir/linux-$_pkgver # compile free firmware files of linux-libre source code make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install @@ -64,6 +64,7 @@ build() { package() { + # create licenses folder to put the licenses files there install -d -m755 $pkgdir/usr/share/licenses/$pkgname # move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder @@ -71,7 +72,7 @@ package() { mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware # move WHENCE file to linux-firmware license folder - cd $srcdir/linux-$pkgver + cd $srcdir/linux-$_pkgver mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname } -- cgit v1.2.3-54-g00ecf From e9e0c4f1e57f199bbf8f596cd5cf6c78cd6233d4 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Jul 2013 02:45:51 -0300 Subject: linux-libre-firmware: add sed commands to fix configure file --- libre/linux-libre-firmware/PKGBUILD | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index eb82af49b..45b5ff001 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -50,6 +50,12 @@ build() { # create firmware folder to put the free firmware files there install -d -m755 $pkgdir/usr/lib/firmware + # fix path on configure file + + sed -i 's|$PWD/../toolchain/inst|/usr|; + 's|xtensa-elf|xtensa-unknown-elf|; + ' target_firmware/configure + # compile ath9k-htc-firmware make -C target_firmware -- cgit v1.2.3-54-g00ecf From ce0c19f9013603b00ca760b821fb7d97d911347e Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Jul 2013 02:48:15 -0300 Subject: linux-libre-firmware: remove blank space on PKGBUILD --- libre/linux-libre-firmware/PKGBUILD | 1 - 1 file changed, 1 deletion(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 45b5ff001..4983604a4 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -51,7 +51,6 @@ build() { install -d -m755 $pkgdir/usr/lib/firmware # fix path on configure file - sed -i 's|$PWD/../toolchain/inst|/usr|; 's|xtensa-elf|xtensa-unknown-elf|; ' target_firmware/configure -- cgit v1.2.3-54-g00ecf From 9cffc2e771fcce9f5d8c3270dcc7bc2aed12e816 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Jul 2013 13:39:40 -0300 Subject: linux-libre-firmware: add xtensa-unknown-elf-binutils as makedependency --- libre/linux-libre-firmware/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 4983604a4..4b886a79e 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -10,7 +10,7 @@ arch=('any') url=('http://linux-libre.fsfla.org/' 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') license=('GPL2' 'BSD') -makedepends=('git' 'xtensa-unknown-elf-gcc') +makedepends=('git' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' -- cgit v1.2.3-54-g00ecf From e0617170412716c68687e161ffca85ef08be2a2a Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 4 Jul 2013 21:54:43 -0300 Subject: linux-libre-firmware: move ath9k-htc-firmware to a separate package due which is necessary be build from a cross building --- libre/linux-libre-firmware/PKGBUILD | 40 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 30 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index 4b886a79e..d5570f98d 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -2,15 +2,13 @@ # Contributor: Márcio Silva pkgname=linux-libre-firmware -_pkgver=3.9 -pkgver=$(LC_ALL=C date -u +%Y%m%d) -pkgrel=1 +pkgver=3.9 +pkgrel=2 pkgdesc='Free firmware files for Linux-libre' arch=('any') -url=('http://linux-libre.fsfla.org/' - 'http://wireless.kernel.org/en/users/Drivers/ath9k_htc') -license=('GPL2' 'BSD') -makedepends=('git' 'xtensa-unknown-elf-binutils' 'xtensa-unknown-elf-gcc') +url=('http://linux-libre.fsfla.org/') +license=('GPL2') +depends=('ath9k-htc-firmware') provides=('linux-firmware' 'kernel26-firmware=2.6.34.99') conflicts=('linux-firmware' @@ -38,31 +36,17 @@ replaces=('linux-firmware' 'rt2870usb-fw' 'rt2x00-rt61-fw' 'rt2x00-rt71w-fw') -source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$_pkgver-gnu/linux-libre-$_pkgver-gnu.tar.xz" - "git://github.com/qca/open-ath9k-htc-firmware") -md5sums=('120df29f88622dabf7015a22c7cc8e25' - 'SKIP') +source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz") +md5sums=('120df29f88622dabf7015a22c7cc8e25') build() { - cd $srcdir/open-ath9k-htc-firmware - # create firmware folder to put the free firmware files there install -d -m755 $pkgdir/usr/lib/firmware - # fix path on configure file - sed -i 's|$PWD/../toolchain/inst|/usr|; - 's|xtensa-elf|xtensa-unknown-elf|; - ' target_firmware/configure - - # compile ath9k-htc-firmware - make -C target_firmware - - mv htc_{7010,9271}.fw $pkgdir/usr/lib/firmware - - cd $srcdir/linux-$_pkgver + cd $srcdir/linux-$pkgver - # compile free firmware files of linux-libre source code + # compile free firmware files make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install } @@ -72,12 +56,8 @@ package() { # create licenses folder to put the licenses files there install -d -m755 $pkgdir/usr/share/licenses/$pkgname - # move LICENSE.TXT from ath9k-htc firmware to linux-firmware license folder - cd $srcdir/open-ath9k-htc-firmware-1.3.2 - mv LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENCE.atheros_firmware - # move WHENCE file to linux-firmware license folder - cd $srcdir/linux-$_pkgver + cd $srcdir/linux-$pkgver mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname } -- cgit v1.2.3-54-g00ecf From 91bd98130ae07e48bd945b0b87e51a117c29ad6f Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 5 Jul 2013 00:24:20 -0300 Subject: linux-libre-firmware: fix issues on PKGBUILD --- libre/linux-libre-firmware/PKGBUILD | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libre/linux-libre-firmware') diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD index d5570f98d..2ddc046b6 100644 --- a/libre/linux-libre-firmware/PKGBUILD +++ b/libre/linux-libre-firmware/PKGBUILD @@ -39,7 +39,7 @@ replaces=('linux-firmware' source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/$pkgver-gnu/linux-libre-$pkgver-gnu.tar.xz") md5sums=('120df29f88622dabf7015a22c7cc8e25') -build() { +package() { # create firmware folder to put the free firmware files there install -d -m755 $pkgdir/usr/lib/firmware @@ -49,15 +49,11 @@ build() { # compile free firmware files make INSTALL_FW_PATH=$pkgdir/usr/lib/firmware firmware_install -} - -package() { - # create licenses folder to put the licenses files there install -d -m755 $pkgdir/usr/share/licenses/$pkgname # move WHENCE file to linux-firmware license folder cd $srcdir/linux-$pkgver - mv firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname + install -m644 firmware/WHENCE $pkgdir/usr/share/licenses/$pkgname } -- cgit v1.2.3-54-g00ecf