aboutsummaryrefslogblamecommitdiffstats
path: root/main/arm-trusted-firmware/APKBUILD
blob: f14da8262e3dedbb6a3d8dba0d49b455d0226889 (plain) (tree)































                                                                                                                                                                              
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=arm-trusted-firmware
pkgver=2.1
pkgrel=0
pkgdesc="ARM Trusted Firmware-A (TF-A)"
url="https://github.com/ARM-software/arm-trusted-firmware"
arch="aarch64"
license="BSD-3-Clause"
makedepends="dtc openssl-dev"
options="!check" # no tests
subpackages="$pkgname-sun50i"
source="$pkgname-$pkgver.tar.gz::https://github.com/ARM-software/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	LDFLAGS="" make PLAT=sun50i_a64 bl31
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/$pkgname
}
sun50i() {
	pkgdesc="ARM Trusted Firmware-A for sun50i"
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/$subpkgname
	install "$builddir"/build/sun50i_a64/release/bl31.bin "$subpkgdir"/usr/share/$subpkgname/
}

sha512sums="9b557ce5f7dc272a0cc0b955ef77fe8f00c8ed01261a2cad29bb2efba3f278e81f1061c809096c97589c7075e5d39be1abd22c8c6a9cf8aaff157f640d36d22c  arm-trusted-firmware-2.1.tar.gz"