summaryrefslogtreecommitdiff
path: root/packaging/optee-os-rpi3.spec
blob: 976122634f07b17b173d0f6322c797d6edefa7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%define buildplat rpi3
%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}
%endif

Name:       optee-os
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}.tar.gz

Provides:   tee-pager.bin
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/arm-plat-%{buildplat}/core/tee.bin

%install
mkdir -p %{buildroot}/boot/

cp -p %{_builddir}/%{name}-%{version}/out/arm-plat-%{buildplat}/core/tee-pager.bin %{buildroot}/boot/
cp -p %{_builddir}/%{name}-%{version}/out/arm-plat-%{buildplat}/core/tee.bin %{buildroot}/boot/

%clean

%files
/boot/tee-pager.bin
/boot/tee.bin