void-packages/srcpkgs/rpi-firmware/template
Peter Bui 60abeee1dc rpi-firmware: update to 20180505.
Install bluetooth firmware as noted in #13789

Closes #14164.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-20 11:57:51 +02:00

54 lines
1.7 KiB
Bash

# Template file for 'rpi-firmware'
_githash="287af2a2be0787a5d45281d1d6183a2161c798d4"
_gitshort="${_githash:0:7}"
pkgname=rpi-firmware
version=20180505
revision=1
noarch=yes
wrksrc="firmware-${_githash}"
short_desc="Firmware files for the Raspberry Pi (git ${_gitshort})"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="3-clause-BSD"
homepage="https://github.com/raspberrypi/firmware"
distfiles="https://github.com/raspberrypi/firmware/archive/${_githash}.tar.gz"
checksum=5edff641f216d2e09c75469dc2e9fc66aff290e212a1cd43ed31c499f99ea055
conf_files="/boot/cmdline.txt /boot/config.txt"
do_install() {
rm -f boot/*.img
rm -rf boot/overlays
rm -f boot/*.dtb
rm -f boot/COPYING.linux
vlicense boot/LICENCE.broadcom
rm -f boot/LICENCE.broadcom
vmkdir boot
cp -R boot/* ${DESTDIR}/boot
# Install configuration files.
vinstall ${FILESDIR}/cmdline.txt 644 boot
vinstall ${FILESDIR}/config.txt 644 boot
# Firmware for rpi3 b and zero wifi chip
for f in bin txt; do
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/bcm43430/7.45.98.38/brcmfmac43430-sdio.${f}
vinstall brcmfmac43430-sdio.${f} 0644 usr/lib/firmware/brcm
done
# Firmware for rpi3 b and zero bluetooth chip
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/bcm43430/BCM43430A1.hcd
vinstall BCM43430A1.hcd 0644 usr/lib/firmware/brcm
# Firmware for rpi3 b+ wifi chip
for f in bin txt clm_blob; do
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/bcm43455/7.45.154/brcmfmac43455-sdio.${f}
vinstall brcmfmac43455-sdio.${f} 0644 usr/lib/firmware/brcm
done
# Firmware for rpi3 b+ bluetooth chip
$XBPS_FETCH_CMD https://archlinuxarm.org/builder/src/bcm43455/BCM4345C0.hcd
vinstall BCM4345C0.hcd 0644 usr/lib/firmware/brcm
}