# Contributor: Marian Buschsieweke # Maintainer: Timo Teräs pkgname=raspberrypi-bootloader pkgver=1.20190718 pkgrel=0 pkgdesc="Bootloader files for the Raspberry Pi" url=https://github.com/raspberrypi/firmware arch="armhf armv7 aarch64" license="custom" depends="" makedepends="" install= options="!check !strip !tracedeps !spdx" source="$pkgname-$pkgver.tar.gz::https://github.com/raspberrypi/firmware/archive/$pkgver.tar.gz" subpackages="$pkgname-experimental $pkgname-debug $pkgname-cutdown $pkgname-doc" builddir="${srcdir}/firmware-${pkgver}" package() { local fw; for fw in bootcode.bin fixup.dat start.elf; do install -D "$builddir"/boot/$fw \ "$pkgdir"/boot/$fw done install -Dm 644 "$builddir"/boot/LICENCE.broadcom \ "$pkgdir"/usr/share/licenses/$pkgname/COPYING } experimental() { pkgdesc="Experimental firmware with additional codecs" local fw; for fw in start_x.elf fixup_x.dat; do install -D "$builddir"/boot/$fw \ "$subpkgdir"/boot/$fw done } debug() { pkgdesc="Debug firmware" local fw; for fw in start_db.elf fixup_db.dat; do install -D "$builddir"/boot/$fw \ "$subpkgdir"/boot/$fw done } cutdown() { pkgdesc="Cut-down firmware for lower memory settings" local fw; for fw in start_cd.elf fixup_cd.dat; do install -D "$builddir"/boot/$fw \ "$subpkgdir"/boot/$fw done } sha512sums="5dbf5da3346f8cce0092c95f0272a8146e3e52a5b1e049a2dad6b1110a01d54b57f80866272190d0f516020352ece1c99a5228a67835e55b58020dabf7f60604 raspberrypi-bootloader-1.20190718.tar.gz"