summaryrefslogtreecommitdiff
path: root/packaging/optee-os-artik710.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/optee-os-artik710.spec')
-rw-r--r--packaging/optee-os-artik710.spec43
1 files changed, 43 insertions, 0 deletions
diff --git a/packaging/optee-os-artik710.spec b/packaging/optee-os-artik710.spec
new file mode 100644
index 0000000..5cc1bc8
--- /dev/null
+++ b/packaging/optee-os-artik710.spec
@@ -0,0 +1,43 @@
+%define buildplat s5p6818
+%define compile_flags CROSS_COMPILE="" CROSS_COMPILE64="" PLATFORM=%{buildplat} CFLAGS=-lgcc_eh CFG_LIBUTEE_TUI=n CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=0
+%if %{__isa_bits} == 64
+%define compile_arch %{compile_flags} CFG_ARM64_core=y
+%else
+%define compile_arch %{compile_flags} CFG_WITH_VFP=n
+%endif
+%define out_dir out/arm-plat-%{buildplat}
+
+Name: optee-os-artik710
+Summary: OPTEE trusted operation system.
+Version: 2.4.0
+Release: 1%{?dist}
+Group: Security/Testing
+License: BSD-2-Clause
+URL: https://github.com/OP-TEE/optee_os
+Source0: %{name}-%{version}-%{buildplat}.tar.gz
+ExclusiveArch: armv6l armv7hl armv7l aarch64
+
+Provides: tee.bin
+
+BuildRequires: make
+BuildRequires: python
+BuildRequires: openssl
+
+%description
+Trusted execution enviroment in Linux using the ARMĀ® TrustZoneĀ® technology.
+
+%prep
+%setup -q
+
+%build
+make %{compile_arch} %{out_dir}/core/tee.bin
+
+%install
+mkdir -p %{buildroot}/boot/
+
+cp -p %{_builddir}/%{name}-%{version}/%{out_dir}/core/tee.bin %{buildroot}/boot/
+
+%clean
+
+%files
+/boot/tee.bin