artik710: Add packaging for s5p6818 52/157252/7
authoregukim <egukim@dignsys.com>
Fri, 13 Oct 2017 12:28:29 +0000 (21:28 +0900)
committereunggu kim <egukim@dignsys.com>
Tue, 14 Nov 2017 15:03:48 +0000 (00:03 +0900)
Added TA build for artick710

Change-Id: I9e8ef12090b6630c2c422f6444c14cdf60b9b6e9
Signed-off-by: egukim <egukim@dignsys.com>
core/arch/arm/plat-s5p6818/conf.mk
core/arch/arm/plat-s5p6818/platform_flags.mk
packaging/optee-os-artik710.spec [new file with mode: 0644]

index 33f3e08..54a5b06 100644 (file)
@@ -17,9 +17,11 @@ $(call force,CFG_WITH_ARM_TRUSTED_FW,y)
 
 ifeq ($(CFG_ARM64_core),y)
 $(call force,CFG_WITH_LPAE,y)
+ta-targets += ta_arm64
 else
 $(call force,CFG_ARM32_core,y)
 $(call force,CFG_MMU_V7_TTB,y)
+ta-targets += ta_arm32
 endif
 
 libtomcrypt_with_optimize_size ?= y
index aac130f..60fb576 100644 (file)
@@ -7,7 +7,6 @@ arm32-platform-aflags   += -mcpu=$(arm32-platform-cpuarch)
 arm32-platform-aflags  += -mfpu=neon
 
 # 64-bit flags
-arm64-platform-cflags  += -mgeneral-regs-only
 arm64-platform-cflags  += -mstrict-align
 
 platform-cflags += -ffunction-sections -fdata-sections
diff --git a/packaging/optee-os-artik710.spec b/packaging/optee-os-artik710.spec
new file mode 100644 (file)
index 0000000..5cc1bc8
--- /dev/null
@@ -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