main/crust: new aport (MR 1163)

This commit is contained in:
Martijn Braam 2020-04-18 19:56:53 +02:00 committed by Oliver Smith
parent 2722f6cac5
commit 5ac381fc46
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

23
main/crust/APKBUILD Normal file
View file

@ -0,0 +1,23 @@
# 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"