From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [ptxdist] [PATCH 4/5] optee_test: add new optee_test target package
Date: Mon, 4 Feb 2019 10:56:01 +0100 [thread overview]
Message-ID: <efbd96c680afa57d508bd9694894ddd7220f2a24.1549274148.git-series.r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <cover.8046754af657e36d62ba5dcf0cd3c1a0b96aedd6.1549274148.git-series.r.czerwinski@pengutronix.de>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
rules/optee_test.in | 9 +++++-
rules/optee_test.make | 82 ++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 91 insertions(+)
create mode 100644 rules/optee_test.in
create mode 100644 rules/optee_test.make
diff --git a/rules/optee_test.in b/rules/optee_test.in
new file mode 100644
index 0000000..43b0d90
--- /dev/null
+++ b/rules/optee_test.in
@@ -0,0 +1,9 @@
+## SECTION=security
+
+config OPTEE_TEST
+ tristate
+ select OPTEE_CLIENT
+ select OPENSSL
+ prompt "optee_test"
+ help
+ FIXME
diff --git a/rules/optee_test.make b/rules/optee_test.make
new file mode 100644
index 0000000..f18a1e4
--- /dev/null
+++ b/rules/optee_test.make
@@ -0,0 +1,82 @@
+# -*-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
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+#$(OPTEE_TEST_SOURCE):
+# @$(call targetinfo)
+# @$(call get, OPTEE_TEST)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPTEE_TEST_CONF_TOOL := NO
+OPTEE_TEST_CONF_ENV := $(CROSS_ENV)
+OPTEE_TEST_MAKE_ENV += CROSS_COMPILE_HOST=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX))
+OPTEE_TEST_MAKE_ENV += CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX))
+OPTEE_TEST_MAKE_ENV += TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os
+OPTEE_TEST_MAKE_ENV += OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr
+OPTEE_TEST_MAKE_ENV += COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib
+OPTEE_TEST_MAKE_ENV += CFG_SECURE_KEY_SERVICES=y
+
+
+ifndef PTXCONF_ARCH_LP64
+OPTEE_TEST_CFLAGS += -D_FILE_OFFSET_BITS=64
+endif
+
+# ----------------------------------------------------------------------------
+# 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, $(OPTEE_TEST_DIR)/out/xtest/xtest, /opt/optee_test/xtest/xtest)
+ @$(call install_tree, optee_test, 0, 0, -, /lib/optee_armtz)
+
+ @$(call install_finish, optee_test)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/optee_test.clean:
+ @$(call targetinfo)
+ @$(call clean_pkg, OPTEE_TEST)
+
+# vim: syntax=make
--
git-series 0.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-02-04 9:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-04 9:55 [ptxdist] [PATCH 0/5] Support for OP-TEE (Open Portable Trusted Execution Environment) Rouven Czerwinski
2019-02-04 9:55 ` [ptxdist] [PATCH 1/5] optee-client: bump to 3.4.0 Rouven Czerwinski
2019-02-04 9:55 ` [ptxdist] [PATCH 2/5] optee-client: add tee-supplicant service file Rouven Czerwinski
2019-02-04 13:22 ` Michael Olbrich
2019-02-04 14:28 ` Rouven Czerwinski
2019-02-04 9:56 ` [ptxdist] [PATCH 3/5] optee: add the OP-TEE as new target package Rouven Czerwinski
2019-02-04 14:03 ` Michael Olbrich
2019-02-04 14:26 ` Rouven Czerwinski
2019-02-04 14:51 ` Michael Olbrich
2019-02-04 9:56 ` Rouven Czerwinski [this message]
2019-02-04 14:43 ` [ptxdist] [PATCH 4/5] optee_test: add new optee_test " Michael Olbrich
2019-02-04 9:56 ` [ptxdist] [PATCH 5/5] optee_examples: add as new " Rouven Czerwinski
2019-02-04 14:54 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=efbd96c680afa57d508bd9694894ddd7220f2a24.1549274148.git-series.r.czerwinski@pengutronix.de \
--to=r.czerwinski@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox