aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensbi/APKBUILD
blob: 727a5dc41b7082791044a320f79df8eb0b8ea92e (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=1.0
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="
7efc2440df1aa7b3bfdd7b44f9c87f8cf15d0aff5a318b742bc591f7599a68e383bbae161a507fb0bb5520cb49fd7ff0f8f0bf5897868319f0f74270addfea26  opensbi-1.0.tar.gz
"