pmaports/main/crust/APKBUILD
2020-07-16 23:14:45 +02:00

23 lines
962 B
Text

# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=crust
pkgver=0_git20200704
pkgrel=0
_commit="d44bc0b0ff98c88a41e3ecaee4042713a4595098"
pkgdesc="SCP firmware for sunxi SoCs"
arch="aarch64"
url="https://github.com/crust-firmware/crust"
license="BSD-1-Clause AND BSD-3-Clause AND GPL-2.0-only and MIT"
makedepends="gcc-or1k-elf binutils-or1k-elf dtc bison flex"
source="https://github.com/crust-firmware/crust/archive/$_commit/crust-$_commit.tar.gz"
options="!check !archcheck !tracedeps pmb:cross-native" # No tests
builddir="$srcdir/$pkgname-$_commit"
build() {
make CROSS_COMPILE=or1k-elf- pinephone_defconfig
make CROSS_COMPILE=or1k-elf- build/scp/scp.bin
}
package() {
install -D -m644 build/scp/scp.bin "$pkgdir"/usr/share/crust/pinephone/scp.bin
}
sha512sums="512b9189c160c2218c83fd6eb7d4571b892a8c8ccf785a3b8b7331abd87a1c800df5f7a61a9b6318cfb6d1b41eae5ae5aa9c55260ac737c5f045756b66856939 crust-d44bc0b0ff98c88a41e3ecaee4042713a4595098.tar.gz"