[packages/arm-trusted-firmware] new (based on fedora)

atler atler at pld-linux.org
Tue Dec 15 18:04:32 CET 2020


commit eb9d072466a58f9932a04b5162355601e1f01247
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Dec 15 17:57:41 2020 +0100

    new (based on fedora)
    
    support for rk3399 exclusively for now (the only soc I'm able to test)

 arm-trusted-firmware.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/arm-trusted-firmware.spec b/arm-trusted-firmware.spec
new file mode 100644
index 0000000..7ee49bf
--- /dev/null
+++ b/arm-trusted-firmware.spec
@@ -0,0 +1,70 @@
+Summary:	ARM Trusted Firmware
+Name:		arm-trusted-firmware
+Version:	2.4
+Release:	1
+License:	BSD
+Group:		Base/Kernel
+Source0:	https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/trusted-firmware-a-%{version}.tar.gz
+# Source0-md5:	19a6d208f613227415654db38cf88c81
+URL:		https://developer.arm.com/tools-and-software/open-source-software/firmware/trusted-firmware
+BuildRequires:	crossarm-gcc
+BuildRequires:	dtc
+ExclusiveArch:	aarch64
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ARM Trusted firmware is a reference implementation of secure world
+software for ARMv8-A including Exception Level 3 (EL3) software. It
+provides a number of standard ARM interfaces like Power State
+Coordination (PSCI), Trusted Board Boot Requirements (TBBR) and Secure
+Monitor.
+
+Note: the contents of this package are generally just consumed by
+bootloaders such as u-boot. As such the binaries aren't of general
+interest to users.
+
+%package -n arm-trusted-firmware-armv8
+Summary:	ARM Trusted Firmware for ARMv8-A
+
+%description -n arm-trusted-firmware-armv8
+ARM Trusted Firmware binaries for various ARMv8-A SoCs.
+
+Note: the contents of this package are generally just consumed by
+bootloaders such as u-boot. As such the binaries aren't of general
+interest to users.
+
+Note: the contents of this package are generally just consumed by
+bootloaders such as u-boot. As such the binaries aren't of general
+interest to users.
+
+%prep
+%setup -q -n trusted-firmware-a-%{version}
+
+# Fix the name of the cross compile for the rk3399 Cortex-M0 PMU
+sed -i 's/arm-none-eabi-/arm-linux-gnueabi-/' plat/rockchip/rk3399/drivers/m0/Makefile
+
+%build
+for soc in rk3399; do
+%{__make} HOSTCC="%{__cc} %{rpmcflags}" CROSS_COMPILE="" PLAT="$soc" bl31
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+for soc in rk3399; do
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/$soc
+ for file in bl31/bl31.elf m0/rk3399m0.bin m0/rk3399m0.elf; do
+  if [ -f build/$soc/release/$file ]; then
+    cp -p build/$soc/release/$file $RPM_BUILD_ROOT%{_datadir}/%{name}/$soc
+  fi
+ done
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -n arm-trusted-firmware-armv8
+%defattr(644,root,root,755)
+%doc readme.rst
+%{_datadir}/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/arm-trusted-firmware.git/commitdiff/eb9d072466a58f9932a04b5162355601e1f01247



More information about the pld-cvs-commit mailing list