2010-10-21 21:44:19 +00:00
|
|
|
# Template file for 'linux-firmware'
|
|
|
|
pkgname=linux-firmware
|
2015-01-09 11:10:51 +00:00
|
|
|
version=20150109
|
2014-06-07 21:25:52 +00:00
|
|
|
revision=1
|
2014-01-01 15:10:11 +00:00
|
|
|
noarch=yes
|
2010-10-21 21:44:19 +00:00
|
|
|
short_desc="Binary firmware blobs for the Linux kernel"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-08 14:29:39 +00:00
|
|
|
homepage="http://www.kernel.org/"
|
|
|
|
license="See /usr/share/licenses/${pkgname}"
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="git"
|
2014-05-31 06:25:37 +00:00
|
|
|
depends="${pkgname}-amd-${version}_${revision} ${pkgname}-network-${version}_${revision}"
|
2013-07-29 09:21:37 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
url="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
|
|
|
|
git clone ${url} ${pkgname}-${version}
|
|
|
|
}
|
2011-10-14 17:24:20 +00:00
|
|
|
do_install() {
|
2012-07-09 18:29:25 +00:00
|
|
|
vmkdir usr/lib/firmware
|
2012-01-24 10:48:52 +00:00
|
|
|
vmkdir usr/share/licenses/${pkgname}
|
2012-07-09 18:29:25 +00:00
|
|
|
vcopy "*" usr/lib/firmware
|
2013-07-29 09:21:37 +00:00
|
|
|
rm -f ${DESTDIR}/usr/lib/firmware/{README*,configure,GPL*}
|
2012-07-09 18:29:25 +00:00
|
|
|
mv ${DESTDIR}/usr/lib/firmware/{LICEN*,WHENCE} \
|
2010-10-21 21:44:19 +00:00
|
|
|
${DESTDIR}/usr/share/licenses/${pkgname}
|
2010-11-21 12:14:28 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2014-05-31 06:25:37 +00:00
|
|
|
linux-firmware-amd_package() {
|
|
|
|
short_desc+=" - AMD CPU/GPU microcode"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/firmware/amd-ucode
|
|
|
|
vmove usr/lib/firmware/radeon
|
|
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.amd-ucode
|
|
|
|
vmove usr/share/licenses/linux-firmware/LICENSE.radeon
|
|
|
|
}
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
linux-firmware-network_package() {
|
2013-06-28 05:45:58 +00:00
|
|
|
short_desc+=" - network"
|
2013-04-13 08:15:49 +00:00
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/firmware/3com
|
|
|
|
vmove usr/lib/firmware/RTL8192E
|
|
|
|
vmove "usr/lib/firmware/rt*"
|
|
|
|
vmove "usr/lib/firmware/ath*"
|
|
|
|
vmove "usr/lib/firmware/ar*"
|
|
|
|
vmove "usr/lib/firmware/bnx2*"
|
|
|
|
vmove usr/lib/firmware/brcm
|
2013-05-01 06:42:59 +00:00
|
|
|
vmove "usr/lib/firmware/cxgb*"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove "usr/lib/firmware/i*"
|
2013-05-01 06:42:59 +00:00
|
|
|
vmove usr/lib/firmware/kaweth
|
|
|
|
vmove usr/lib/firmware/libertas
|
2014-07-08 14:00:45 +00:00
|
|
|
vmove usr/lib/firmware/mrvl
|
2013-05-01 06:42:59 +00:00
|
|
|
vmove usr/lib/firmware/ueagle-atm
|
|
|
|
vmove usr/lib/firmware/ti-connectivity
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|