aboutsummaryrefslogblamecommitdiffstats
path: root/main/raspberrypi-bootloader/APKBUILD
blob: 0950873504de45f92998124e693f776d188aefac (plain) (tree)
1
2
3
4
5
6
7
8
                                                                

                                             
                 
        

                                               
                          



                
                                        
                                                                                                
                                                                                
 
                                       
 
           
                                                                                      








                                                              
                                                                               


                                                     

 

                                
                                                                               


                                                 

 

                                                             
                                                                                   



                                                 
 
                                                                                                                                                                                       
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi-bootloader
pkgver=1.20200902
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 fixup4.dat start.elf start4.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 start4x.elf fixup_x.dat fixup4x.dat; do
		install -D "$builddir"/boot/$fw \
				"$subpkgdir"/boot/$fw
	done
}

debug() {
	pkgdesc="Debug firmware"
    local fw; for fw in start_db.elf start4db.elf fixup_db.dat fixup4db.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 start4cd.elf fixup_cd.dat fixup4cd.dat; do
		install -D "$builddir"/boot/$fw \
			"$subpkgdir"/boot/$fw
	done
}

sha512sums="91d084d2dba99219b72cc03d49d9546e070477d35fa151b42e204ec6b77ee76a8774235cc32cec8c3aa4360b7c1922dd1c65da8489300476290af87e167f0c79  raspberrypi-bootloader-1.20200902.tar.gz"