aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crust/APKBUILD
blob: db0a7615d80077084db576c5f5c7819e94e11c69 (plain)
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
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=crust
pkgver=0.4
pkgrel=0
pkgdesc="libre SCP firmware for Allwinner sunxi SoCs"
url="https://github.com/crust-firmware/crust"
arch="aarch64" # only needed for sunxi ARM64 SOCs
license="BSD-3-clause or GPL-2.0-only"
options="!check" # no tests
makedepends="gcc-or1k-elf binutils-or1k-elf dtc bison flex"
source="https://github.com/crust-firmware/crust/archive/v$pkgver/crust-v$pkgver.tar.gz"

build() {
	make CROSS_COMPILE=or1k-elf- pinephone_defconfig
	make CROSS_COMPILE=or1k-elf- scp
}

package() {
	install -D -m644 build/scp/scp.bin "$pkgdir"/usr/share/crust/pinephone/scp.bin
}

sha512sums="
c6cd3b001ed3573c1737d07e68871740ae5df152d3dcb33358378f8e91ef599f6141bc4fc8aa66d2bc6d9be510da927cfab389e36e9f7f25bdad02f778acac03  crust-v0.4.tar.gz
"