# Forked for adding rk3399, rk3328 support and crust compatibility pkgname=arm-trusted-firmware pkgver=9999 _pkgver=2.6 pkgrel=6 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/$pkgname/archive/v$_pkgver/arm-trusted-firmware-$_pkgver.tar.gz 2001-allwinner-Choose-PSCI-states-to-avoid-translation.patch 2002-allwinner-Simplify-CPU_SUSPEND-power-state-encoding.patch " options="!check" # no tests builddir="$srcdir/$pkgname-$_pkgver" _plats="sun50i_a64 sun50i_h6 rk3399 rk3328" build() { unset LDFLAGS for plat in $_plats; do make PLAT=$plat DEBUG=0 bl31 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=" 8b20964b1b672898268e27424984af0ef9e95b38f426370ed4b802f67fc204db5f467886707dce77e4560548e01777a6c36d4eb801842c7d1f2ff6ca5d9b7dd1 arm-trusted-firmware-2.6.tar.gz 3f8c63941418e44b849f8770704b1570926cbe20522d6957b965afe62c02a55d092b21397603994f3444908376531f13eb28b9716ed10e0d57bae0d9f5713c1a 2001-allwinner-Choose-PSCI-states-to-avoid-translation.patch 15daabe8a55847d23fb5e498353d368773a50ec339786b422a9b21bbc21a7b1185851a0d9dca6832952bcbc71a1c9d08a508323625bcd2b5781955248a43f13d 2002-allwinner-Simplify-CPU_SUSPEND-power-state-encoding.patch "