2 Summary: OpTEE OS with userspace libraries and devkit for OpTEE OS.
5 Group: Security/Testing
7 URL: https://github.com/OP-TEE/optee_os
8 Source0: %{name}-%{version}.tar.gz
9 ExclusiveArch: armv6l armv7hl armv7l aarch64
11 Provides: tee-pager.bin
17 BuildRequires: openssl
20 Trusted execution enviroment in Linux using the ARM® TrustZone® technology.
22 %package -n optee-os-rpi3
23 Summary: OPTEE trusted operation system.
24 Group: Security/Testing
26 %description -n optee-os-rpi3
27 Trusted execution enviroment in Linux using the ARM® TrustZone® technology.
30 Summary: OpTEE OS userspace libraries and devkit for OpTEE OS.
31 Group: Security/Testing
34 Trusted execution enviroment in Linux using the ARM® TrustZone® technology.
36 %package -n optee-os-artik710
37 Summary: OPTEE trusted operation system.
38 Group: Security/Testing
40 %description -n optee-os-artik710
41 Trusted execution enviroment in Linux using the ARM® TrustZone® technology.
43 %if "%{build_type}" == "DEBUG"
44 %define log_env CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
46 %define log_env CFG_TEE_CORE_LOG_LEVEL=0 DEBUG=0
49 %if %{__isa_bits} == 64
50 %define compile_arch CFG_ARM64_core=y
52 %define compile_arch CFG_WITH_VFP=n
55 %define compile_flags CROSS_COMPILE="" CROSS_COMPILE64="" CFLAGS=-lgcc_eh CFG_LIBUTEE_TUI=n CFLAGS=-lgcc_eh CFG_LIBUTEE_TUI=n %{log_env} %{compile_arch}
57 %define export_dir export-ta_arm%{__isa_bits}
58 %define out_export_dir opt/optee/
64 make %{compile_flags} PLATFORM=rpi3
65 make %{compile_flags} PLATFORM=s5p6818 out/arm-plat-s5p6818/core/tee.bin
68 cp lib/libutils/isoc/arch/arm/softfloat/COPYING.txt LICENSE.BSD-3-Clause.mod
70 %define buildplat rpi3
71 %define plat_dir arm-plat-%{buildplat}
72 mkdir -p %{buildroot}/boot/
73 mkdir -p %{buildroot}/%{out_export_dir}
75 cp -p out/%{plat_dir}/core/tee-pager.bin %{buildroot}/boot/
76 cp -p out/%{plat_dir}/core/tee.bin %{buildroot}/boot/
77 cp -rf out/%{plat_dir}/%{export_dir} %{buildroot}/%{out_export_dir}/
79 %define buildplat s5p6818
80 %define plat_dir arm-plat-%{buildplat}
82 cp -p out/%{plat_dir}/core/tee.bin %{buildroot}/boot/tee-artik.bin
86 %files -n optee-os-rpi3
88 %license LICENSE.BSD-3-Clause
94 %license LICENSE.BSD-3-Clause
95 %license LICENSE.BSD-3-Clause.mod
96 /%{out_export_dir}/%{export_dir}
98 %files -n optee-os-artik710
100 %license LICENSE.BSD-3-Clause