]>
Commit | Line | Data |
---|---|---|
eb9d0724 JP |
1 | Summary: ARM Trusted Firmware |
2 | Name: arm-trusted-firmware | |
3 | Version: 2.4 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Base/Kernel | |
7 | Source0: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/trusted-firmware-a-%{version}.tar.gz | |
8 | # Source0-md5: 19a6d208f613227415654db38cf88c81 | |
9 | URL: https://developer.arm.com/tools-and-software/open-source-software/firmware/trusted-firmware | |
10 | BuildRequires: crossarm-gcc | |
11 | BuildRequires: dtc | |
12 | ExclusiveArch: aarch64 | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | ARM Trusted firmware is a reference implementation of secure world | |
17 | software for ARMv8-A including Exception Level 3 (EL3) software. It | |
18 | provides a number of standard ARM interfaces like Power State | |
19 | Coordination (PSCI), Trusted Board Boot Requirements (TBBR) and Secure | |
20 | Monitor. | |
21 | ||
22 | Note: the contents of this package are generally just consumed by | |
23 | bootloaders such as u-boot. As such the binaries aren't of general | |
24 | interest to users. | |
25 | ||
26 | %package -n arm-trusted-firmware-armv8 | |
27 | Summary: ARM Trusted Firmware for ARMv8-A | |
28 | ||
29 | %description -n arm-trusted-firmware-armv8 | |
30 | ARM Trusted Firmware binaries for various ARMv8-A SoCs. | |
31 | ||
32 | Note: the contents of this package are generally just consumed by | |
33 | bootloaders such as u-boot. As such the binaries aren't of general | |
34 | interest to users. | |
35 | ||
36 | Note: the contents of this package are generally just consumed by | |
37 | bootloaders such as u-boot. As such the binaries aren't of general | |
38 | interest to users. | |
39 | ||
40 | %prep | |
41 | %setup -q -n trusted-firmware-a-%{version} | |
42 | ||
43 | # Fix the name of the cross compile for the rk3399 Cortex-M0 PMU | |
44 | sed -i 's/arm-none-eabi-/arm-linux-gnueabi-/' plat/rockchip/rk3399/drivers/m0/Makefile | |
45 | ||
46 | %build | |
47 | for soc in rk3399; do | |
48 | %{__make} HOSTCC="%{__cc} %{rpmcflags}" CROSS_COMPILE="" PLAT="$soc" bl31 | |
49 | done | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
54 | ||
55 | for soc in rk3399; do | |
56 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/$soc | |
57 | for file in bl31/bl31.elf m0/rk3399m0.bin m0/rk3399m0.elf; do | |
58 | if [ -f build/$soc/release/$file ]; then | |
59 | cp -p build/$soc/release/$file $RPM_BUILD_ROOT%{_datadir}/%{name}/$soc | |
60 | fi | |
61 | done | |
62 | done | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files -n arm-trusted-firmware-armv8 | |
68 | %defattr(644,root,root,755) | |
69 | %doc readme.rst | |
70 | %{_datadir}/%{name} |