aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensbi/APKBUILD
blob: 1fbd241f96db01f1811aab190d838d93699dc0bc (plain) (blame)
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
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=opensbi
# XXX: Updates require rebuilds of main/u-boot.
pkgver=0.9
pkgrel=0
pkgdesc="risc-v open source supervisor binary interface"
url=" https://github.com/riscv/opensbi"
arch="riscv64"
license="BSD-2-Clause"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/riscv/opensbi/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make PLATFORM=generic
}

package() {
	mkdir -p "$pkgdir"/usr/share/opensbi/generic/firmware
	cp $builddir/build/platform/generic/firmware/*elf "$pkgdir"/usr/share/opensbi/generic/firmware
	cp $builddir/build/platform/generic/firmware/*bin "$pkgdir"/usr/share/opensbi/generic/firmware
}

sha512sums="
71badfad67956e2626d662f98c6e94026258e52bfee838578adb0f9ab34decc36d3308a1e3dc0238fa5aa557c9e1c0af5da77dfd6a5404d7ef9da3001260e3e2  opensbi-0.9.tar.gz
"