42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
|
# Forked for adding rk3399 support
|
||
|
pkgname=arm-trusted-firmware
|
||
|
_pkgver=2.2
|
||
|
pkgver=9999
|
||
|
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 gcc-arm-none-eabi"
|
||
|
options="!check" # no tests
|
||
|
subpackages="$pkgname-sun50i $pkgname-rk3399"
|
||
|
source="
|
||
|
$pkgname-$_pkgver.tar.gz::https://github.com/ARM-software/$pkgname/archive/v$_pkgver.tar.gz
|
||
|
rk3399-baudrate.patch
|
||
|
"
|
||
|
builddir="$srcdir/$pkgname-$_pkgver"
|
||
|
|
||
|
build() {
|
||
|
LDFLAGS="" make PLAT=sun50i_a64 bl31
|
||
|
LDFLAGS="" make PLAT=rk3399 bl31
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
mkdir -p "$pkgdir"/usr/share/$pkgname
|
||
|
}
|
||
|
|
||
|
sun50i() {
|
||
|
pkgdesc="ARM Trusted Firmware-A for sun50i"
|
||
|
mkdir -p "$subpkgdir"/usr/share/$subpkgname
|
||
|
install "$builddir"/build/sun50i_a64/release/bl31.bin "$subpkgdir"/usr/share/$subpkgname/
|
||
|
}
|
||
|
|
||
|
rk3399() {
|
||
|
pkgdesc="ARM Trusted Firmware-A for rk3399"
|
||
|
mkdir -p "$subpkgdir"/usr/share/$subpkgname
|
||
|
install "$builddir"/build/rk3399/release/bl31/bl31.elf "$subpkgdir"/usr/share/$subpkgname/
|
||
|
}
|
||
|
|
||
|
sha512sums="7bdeb1044612a9fd0d61097f7cc9b27830d992a41a06359bb6653dab15296abf3d8b4dc63fc1988ede709d7c011afcfb304ff2818f80b91c1fc471be2a3c72be arm-trusted-firmware-2.2.tar.gz
|
||
|
86d8c60157145ab05e9b870aad11d2acaf2137ba00bf71419f8a54a4fd2b1906c19bc8bfeccc735344d1dcf11ba81bd9396bfd8854cdb972a72503b632d1e900 rk3399-baudrate.patch"
|