Milan P. Stanić b44478ac9a testing/opensbi: new aport
https://github.com/riscv/opensbi
risc-v open source supervisor binary interface
2021-06-28 06:22:57 +00:00

26 lines
862 B
Plaintext

# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=opensbi
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
"