aboutsummaryrefslogtreecommitdiffstats
path: root/main/arm-trusted-firmware/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/arm-trusted-firmware/APKBUILD')
-rw-r--r--main/arm-trusted-firmware/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/arm-trusted-firmware/APKBUILD b/main/arm-trusted-firmware/APKBUILD
new file mode 100644
index 0000000000..f14da8262e
--- /dev/null
+++ b/main/arm-trusted-firmware/APKBUILD
@@ -0,0 +1,32 @@
+# 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"