57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
# Contributor: Milan P. Stanić <mps@arvanta.net>
|
|
# Contributor: Maxim Karasev <begs@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=arm-trusted-firmware
|
|
pkgver=9999
|
|
_pkgver=2.7.0
|
|
pkgrel=7
|
|
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 gcc-arm-none-eabi"
|
|
source="https://github.com/ARM-software/arm-trusted-firmware/archive/v$_pkgver/arm-trusted-firmware-v$_pkgver.tar.gz"
|
|
options="!check" # No tests
|
|
|
|
_plats="
|
|
sun50i_a64
|
|
sun50i_h6
|
|
rk3399
|
|
rk3328
|
|
"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
for plat in $_plats; do
|
|
local opts=""
|
|
|
|
case "$plat" in
|
|
sun50i_a64)
|
|
opts="SUNXI_SETUP_REGULATORS=0 SUNXI_AMEND_DTB=1"
|
|
;;
|
|
esac
|
|
|
|
msg "Building ATF for $plat (opts='$opts')"
|
|
make PLAT=$plat bl31 $opts
|
|
done
|
|
}
|
|
|
|
package() {
|
|
for plat in $_plats; do
|
|
case $plat in
|
|
rk3399|rk3328)
|
|
install -D "$builddir"/build/$plat/release/bl31/bl31.elf \
|
|
"$pkgdir"/usr/share/$pkgname/$plat/bl31.elf
|
|
;;
|
|
*)
|
|
install -D "$builddir"/build/$plat/release/bl31.bin \
|
|
"$pkgdir"/usr/share/$pkgname/$plat/bl31.bin
|
|
;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
3e1e09bcc69a0f080f91b94d9c8da6dd0b27b86292599c280438d7b6f594017a896af7cfc58d9d22053f77b5daa2faecd51a59505c755eac8493e4e0fd1e9203 arm-trusted-firmware-v2.7.0.tar.gz
|
|
"
|