summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoregukim <egukim@dignsys.com>2017-10-13 12:28:29 (GMT)
committereunggu kim <egukim@dignsys.com>2017-11-14 15:03:48 (GMT)
commit8f1403163531e2114824263d09902f1b161e5681 (patch)
treec692a2cfc342ef7f3ee46826bb964f89ad6e1d90
parent55074beb232064345583ffa4de3e4e33020fed47 (diff)
downloadtef-optee_os-8f1403163531e2114824263d09902f1b161e5681.zip
tef-optee_os-8f1403163531e2114824263d09902f1b161e5681.tar.gz
tef-optee_os-8f1403163531e2114824263d09902f1b161e5681.tar.bz2
artik710: Add packaging for s5p6818refs/changes/52/157252/7
Added TA build for artick710 Change-Id: I9e8ef12090b6630c2c422f6444c14cdf60b9b6e9 Signed-off-by: egukim <egukim@dignsys.com>
-rw-r--r--core/arch/arm/plat-s5p6818/conf.mk2
-rw-r--r--core/arch/arm/plat-s5p6818/platform_flags.mk1
-rw-r--r--packaging/optee-os-artik710.spec43
3 files changed, 45 insertions, 1 deletions
diff --git a/core/arch/arm/plat-s5p6818/conf.mk b/core/arch/arm/plat-s5p6818/conf.mk
index 33f3e08..54a5b06 100644
--- a/core/arch/arm/plat-s5p6818/conf.mk
+++ b/core/arch/arm/plat-s5p6818/conf.mk
@@ -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
diff --git a/core/arch/arm/plat-s5p6818/platform_flags.mk b/core/arch/arm/plat-s5p6818/platform_flags.mk
index aac130f..60fb576 100644
--- a/core/arch/arm/plat-s5p6818/platform_flags.mk
+++ b/core/arch/arm/plat-s5p6818/platform_flags.mk
@@ -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
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