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
|
2023-01-12 16:28:15 +00:00
|
|
|
_pkgver=2.8.0
|
|
|
|
pkgrel=9
|
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')"
|
2022-11-30 08:33:01 +00:00
|
|
|
LDFLAGS="$LDFLAGS -no-warn-rwx-segment" make E=0 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="
|
2023-01-12 16:28:15 +00:00
|
|
|
958cf8f9e258638e59d0fbd8b053fce7d8a9ea2fc922686c9d20ea16f79f55219ac18a12ab240c528ee98e49c2e0eef4c963fdb255cc14b92437a5b3cffc8640 arm-trusted-firmware-v2.8.0.tar.gz
|
2021-05-06 22:27:28 +00:00
|
|
|
"
|