61 lines
2.0 KiB
Bash
61 lines
2.0 KiB
Bash
# Template file for 'rpi-firmware'
|
|
_githash="8f13114b9ea29bd004151d4a8afa500b2df721be"
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
pkgname=rpi-firmware
|
|
version=20201123
|
|
revision=3
|
|
archs="armv6l* armv7l* aarch64*"
|
|
wrksrc="firmware-${_githash}"
|
|
provides="linux-firmware-broadcom-${version}_${revision}"
|
|
replaces="linux-firmware-broadcom>=0"
|
|
short_desc="Firmware files for the Raspberry Pi (git ${_gitshort})"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="BSD-3-Clause, custom:Cypress"
|
|
homepage="https://github.com/raspberrypi/firmware"
|
|
distfiles="https://github.com/raspberrypi/firmware/archive/${_githash}.tar.gz"
|
|
checksum=f9be0cc177aae7dddaa0a2967d090ea33a95be9dd519d2eee3bc740af8ffb19e
|
|
|
|
conf_files="/boot/cmdline.txt /boot/config.txt"
|
|
nostrip=yes
|
|
|
|
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
|
|
|
|
$XBPS_FETCH_CMD https://github.com/RPi-Distro/firmware-nonfree/raw/master/LICENCE.cypress
|
|
vlicense LICENCE.cypress
|
|
|
|
# Firmware for rpi3 b and zero wifi chip
|
|
for f in bin txt; do
|
|
$XBPS_FETCH_CMD https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/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://github.com/RPi-Distro/bluez-firmware/raw/master/broadcom/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://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm/brcmfmac43455-sdio.${f}
|
|
vinstall brcmfmac43455-sdio.${f} 0644 usr/lib/firmware/brcm
|
|
done
|
|
|
|
# Firmware for rpi3 b+ bluetooth chip
|
|
$XBPS_FETCH_CMD https://github.com/RPi-Distro/bluez-firmware/raw/master/broadcom/BCM4345C0.hcd
|
|
vinstall BCM4345C0.hcd 0644 usr/lib/firmware/brcm
|
|
}
|