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 %{?asan:/usr/bin/gcc-unforce-options}
65 make %{compile_flags} PLATFORM=rpi3
66 make %{compile_flags} PLATFORM=s5p6818 out/arm-plat-s5p6818/core/tee.bin
69 cp lib/libutils/isoc/arch/arm/softfloat/COPYING.txt LICENSE.BSD-3-Clause.mod
71 %define buildplat rpi3
72 %define plat_dir arm-plat-%{buildplat}
73 mkdir -p %{buildroot}/boot/
74 mkdir -p %{buildroot}/%{out_export_dir}
76 cp -p out/%{plat_dir}/core/tee-pager.bin %{buildroot}/boot/
77 cp -p out/%{plat_dir}/core/tee.bin %{buildroot}/boot/
78 cp -rf out/%{plat_dir}/%{export_dir} %{buildroot}/%{out_export_dir}/
80 %define buildplat s5p6818
81 %define plat_dir arm-plat-%{buildplat}
83 cp -p out/%{plat_dir}/core/tee.bin %{buildroot}/boot/tee-artik.bin
87 %files -n optee-os-rpi3
89 %license LICENSE.BSD-3-Clause
95 %license LICENSE.BSD-3-Clause
96 %license LICENSE.BSD-3-Clause.mod
97 /%{out_export_dir}/%{export_dir}
99 %files -n optee-os-artik710
101 %license LICENSE.BSD-3-Clause