summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2019-02-13 09:43:00 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-14 19:18:05 +0100
commitf8378139e4d4817fa9da6a7459399cb0ef7b6df7 (patch)
tree734be316c85056c60a9cdcb30e38cb84cd6e6c02
parent944acc24571c167cbd8b3f8b430fc3ff7e97581f (diff)
downloadptxdist-f8378139e4d4817fa9da6a7459399cb0ef7b6df7.tar.gz
ptxdist-f8378139e4d4817fa9da6a7459399cb0ef7b6df7.tar.xz
optee-test: add new optee-test target package
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/optee-test.in12
-rw-r--r--rules/optee-test.make73
2 files changed, 85 insertions, 0 deletions
diff --git a/rules/optee-test.in b/rules/optee-test.in
new file mode 100644
index 000000000..b00d212ca
--- /dev/null
+++ b/rules/optee-test.in
@@ -0,0 +1,12 @@
+## SECTION=security
+
+config OPTEE_TEST
+ tristate
+ select OPTEE_CLIENT
+ select OPTEE
+ select OPENSSL
+ prompt "optee-test"
+ help
+ The optee_test git contains the source code for the TEE sanity
+ testsuite in Linux using the ARM(R) TrustZone(R) technology. It is
+ distributed under the GPLv2 and BSD 2-clause open-source licenses. \ No newline at end of file
diff --git a/rules/optee-test.make b/rules/optee-test.make
new file mode 100644
index 000000000..8517b335d
--- /dev/null
+++ b/rules/optee-test.make
@@ -0,0 +1,73 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Rouven Czerwinski <rouven@czerwinskis.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPTEE_TEST) += optee-test
+
+#
+# Paths and names
+#
+OPTEE_TEST_VERSION := 3.4.0
+OPTEE_TEST_MD5 := 5bfd9c01a8271e0b7d623d208349f183
+OPTEE_TEST := optee-test-$(OPTEE_TEST_VERSION)
+OPTEE_TEST_SUFFIX := tar.gz
+OPTEE_TEST_URL := https://github.com/OP-TEE/optee_test/archive/$(OPTEE_TEST_VERSION).$(OPTEE_TEST_SUFFIX)
+OPTEE_TEST_SOURCE := $(SRCDIR)/$(OPTEE_TEST).$(OPTEE_TEST_SUFFIX)
+OPTEE_TEST_DIR := $(BUILDDIR)/$(OPTEE_TEST)
+OPTEE_TEST_LICENSE := BSD-2-Clause and GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPTEE_TEST_CONF_TOOL := NO
+OPTEE_TEST_MAKE_ENV := \
+ $(CROSS_ENV) \
+ CROSS_COMPILE_HOST=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
+ CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
+ TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
+ OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
+ COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+OPTEE_TEST_INSTALL_OPT := install DESTDIR=$(OPTEE_TEST_PKGDIR)/usr/
+
+$(STATEDIR)/optee-test.install:
+ @$(call targetinfo)
+ @$(call world/install, OPTEE_TEST)
+ @mv -v $(OPTEE_TEST_PKGDIR)/usr/bin/xtest $(OPTEE_TEST_PKGDIR)/usr/bin/optee-xtest
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/optee-test.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, optee-test)
+ @$(call install_fixup, optee-test,PRIORITY,optional)
+ @$(call install_fixup, optee-test,SECTION,base)
+ @$(call install_fixup, optee-test,AUTHOR,"Rouven Czerwinski <rouven@czerwinskis.de>")
+ @$(call install_fixup, optee-test,DESCRIPTION,missing)
+
+ @$(call install_copy, optee-test, 0, 0, 0755, -, /usr/bin/optee-xtest)
+ @$(call install_tree, optee-test, 0, 0, -, /usr/lib/optee_armtz)
+
+ @$(call install_finish, optee-test)
+
+ @$(call touch)
+
+# vim: syntax=make