aboutsummaryrefslogtreecommitdiffstats
path: root/main/raspberrypi-bootloader/APKBUILD
blob: c4857e52cc7706138b38f2ead0f8c2ae88701bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=raspberrypi-bootloader
pkgver=1.20180417
pkgrel=0
pkgdesc="Bootloader files for the Raspberry Pi"
url=https://github.com/raspberrypi/firmware
arch="armhf 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="0ba4d81ae44e430094151f85838133884123a504ceabf8bcb0fdb0561019fa6c59d964a76f10ba6017d96514eef4ded24bc6c09c7a4a88e9aaa16c1a0a0fd0f1  raspberrypi-bootloader-1.20180417.tar.gz"