2015-02-05 18:23:06 +00:00
|
|
|
buildarch=20
|
2015-02-04 00:54:33 +00:00
|
|
|
|
2013-03-17 14:14:17 +00:00
|
|
|
pkgbase=raspberrypi-firmware
|
|
|
|
pkgname=('raspberrypi-firmware'
|
|
|
|
'raspberrypi-firmware-bootloader'
|
2014-03-24 19:57:04 +00:00
|
|
|
'raspberrypi-firmware-bootloader-x'
|
2013-03-17 14:14:17 +00:00
|
|
|
'raspberrypi-firmware-tools'
|
|
|
|
'raspberrypi-firmware-examples')
|
2015-07-14 00:12:40 +00:00
|
|
|
pkgver=20150713
|
2015-07-14 00:54:11 +00:00
|
|
|
pkgrel=2
|
|
|
|
_commit=ffd7aa30bade0082a2a5476fcfca0f314c365711
|
2012-03-17 18:53:40 +00:00
|
|
|
pkgdesc="Firmware files for Raspberry Pi"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/raspberrypi/firmware"
|
2012-03-17 19:27:32 +00:00
|
|
|
makedepends=('git')
|
2012-03-17 18:53:40 +00:00
|
|
|
license=('custom')
|
|
|
|
options=(!strip)
|
2015-02-04 00:54:33 +00:00
|
|
|
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz")
|
2015-07-14 00:54:11 +00:00
|
|
|
md5sums=('77290950ae412d6a9f63dd70e7d3009c')
|
2012-05-18 22:58:41 +00:00
|
|
|
|
2013-03-17 14:14:17 +00:00
|
|
|
package_raspberrypi-firmware() {
|
|
|
|
depends=('raspberrypi-firmware-bootloader'
|
2013-03-18 18:00:59 +00:00
|
|
|
'raspberrypi-firmware-bootloader-x'
|
2013-03-17 14:14:17 +00:00
|
|
|
'raspberrypi-firmware-tools'
|
|
|
|
'raspberrypi-firmware-examples')
|
|
|
|
}
|
|
|
|
|
|
|
|
package_raspberrypi-firmware-bootloader() {
|
|
|
|
pkgdesc="Bootloader files for Raspberry Pi"
|
|
|
|
|
2015-03-23 00:36:33 +00:00
|
|
|
mkdir -p "${pkgdir}"/boot/overlays
|
2015-02-04 00:54:33 +00:00
|
|
|
cp "${srcdir}"/firmware-${_commit}/boot/{*.dat,*.bin,*.elf} "${pkgdir}"/boot
|
2015-03-23 00:36:33 +00:00
|
|
|
cp "${srcdir}"/firmware-${_commit}/boot/overlays/README "${pkgdir}"/boot/overlays
|
2015-02-04 00:54:33 +00:00
|
|
|
rm "${pkgdir}"/boot/{start_x.elf,fixup_x.dat}
|
2013-03-18 18:00:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_raspberrypi-firmware-bootloader-x() {
|
|
|
|
pkgdesc="Bootloader with extra codecs for Raspberry Pi"
|
|
|
|
depends=('raspberrypi-firmware-bootloader')
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/boot
|
2015-02-04 00:54:33 +00:00
|
|
|
cp "${srcdir}"/firmware-${_commit}/boot/{start_x.elf,fixup_x.dat} "${pkgdir}"/boot
|
2013-03-17 14:14:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_raspberrypi-firmware-tools() {
|
|
|
|
pkgdesc="Firmware tools and header files for Raspberry Pi"
|
|
|
|
|
2012-07-28 22:39:26 +00:00
|
|
|
mkdir -p "${pkgdir}"/opt/vc
|
2012-08-07 16:03:08 +00:00
|
|
|
|
2015-02-04 00:54:33 +00:00
|
|
|
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/{bin,include,lib,sbin,LICENCE} "${pkgdir}"/opt/vc
|
2013-01-08 00:01:52 +00:00
|
|
|
|
|
|
|
# Create lib links
|
|
|
|
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
|
|
|
|
|
|
|
|
# ensure we can load libs
|
2013-08-03 18:46:29 +00:00
|
|
|
echo "/opt/vc/lib/" > "${pkgdir}"/etc/ld.so.conf.d/00-raspberrypi-firmware.conf
|
2012-03-17 18:53:40 +00:00
|
|
|
}
|
2013-03-17 14:14:17 +00:00
|
|
|
|
|
|
|
package_raspberrypi-firmware-examples() {
|
|
|
|
pkgdesc="Firmware example sources for Raspberry Pi"
|
|
|
|
|
|
|
|
mkdir -p "${pkgdir}"/opt/vc
|
|
|
|
|
2015-02-04 00:54:33 +00:00
|
|
|
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/src "${pkgdir}"/opt/vc
|
2013-03-17 14:14:17 +00:00
|
|
|
}
|