mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 08:12:35 +02:00
28 lines
940 B
Plaintext
28 lines
940 B
Plaintext
# 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.3.1
|
|
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
|
|
makedepends="bash python3"
|
|
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="
|
|
087f49c9e43d6287b087752e63a01647159a57626164894a7d0da116d99e5abd03a2e41a17ea7ad96018d83eec9a67ad73b16ef4ed9f4fa96b9cd6fe4c068ff6 opensbi-1.3.1.tar.gz
|
|
"
|