2022-06-28 15:58:20 +00:00
|
|
|
# Contributor: Milan P. Stanić <mps@arvanta.net>
|
|
|
|
# Contributor: Maxim Karasev <begs@disroot.org>
|
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
2020-04-07 17:55:28 +00:00
|
|
|
pkgname=arm-trusted-firmware
|
|
|
|
pkgver=9999
|
2022-06-28 15:58:20 +00:00
|
|
|
_pkgver=2.7.0
|
|
|
|
pkgrel=7
|
2020-04-07 17:55:28 +00:00
|
|
|
pkgdesc="ARM Trusted Firmware-A (TF-A)"
|
2021-06-25 17:53:00 +00:00
|
|
|
url="https://github.com/ARM-software/arm-trusted-firmware"
|
2020-04-07 17:55:28 +00:00
|
|
|
arch="aarch64"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
makedepends="dtc openssl-dev gcc-arm-none-eabi"
|
2022-06-28 15:58:20 +00:00
|
|
|
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
|
2022-01-20 07:34:15 +00:00
|
|
|
"
|
2020-04-07 17:55:28 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
|
|
|
|
|
|
build() {
|
2021-06-25 17:53:00 +00:00
|
|
|
unset LDFLAGS
|
|
|
|
for plat in $_plats; do
|
2022-06-28 15:58:20 +00:00
|
|
|
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
|
2021-06-25 17:53:00 +00:00
|
|
|
done
|
2020-04-07 17:55:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-06-25 17:53:00 +00:00
|
|
|
for plat in $_plats; do
|
|
|
|
case $plat in
|
2021-07-08 14:46:18 +00:00
|
|
|
rk3399|rk3328)
|
2021-06-25 17:53:00 +00:00
|
|
|
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
|
2020-04-07 17:55:28 +00:00
|
|
|
}
|
|
|
|
|
2021-05-06 22:27:28 +00:00
|
|
|
sha512sums="
|
2022-06-28 15:58:20 +00:00
|
|
|
3e1e09bcc69a0f080f91b94d9c8da6dd0b27b86292599c280438d7b6f594017a896af7cfc58d9d22053f77b5daa2faecd51a59505c755eac8493e4e0fd1e9203 arm-trusted-firmware-v2.7.0.tar.gz
|
2021-05-06 22:27:28 +00:00
|
|
|
"
|