mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [ptxdist] [PATCH v2 4/5] optee-test: add new optee-test target package
Date: Wed, 13 Feb 2019 08:25:15 +0100	[thread overview]
Message-ID: <494ef42ab0924ea6849b1e8bbf702875908fa06a.1550042684.git-series.r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <cover.6495606559e48be9e838d9789bb35b35c129a108.1550042684.git-series.r.czerwinski@pengutronix.de>

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 rules/optee-test.in   |  9 ++++++-
 rules/optee-test.make | 71 ++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 80 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..743a080
--- /dev/null
+++ b/rules/optee-test.in
@@ -0,0 +1,9 @@
+## SECTION=security
+
+config OPTEE_TEST
+	tristate
+	select OPTEE_CLIENT
+	select OPENSSL
+	prompt "OP-TEE Test"
+	help
+	  FIXME
diff --git a/rules/optee-test.make b/rules/optee-test.make
new file mode 100644
index 0000000..3bbde74
--- /dev/null
+++ b/rules/optee-test.make
@@ -0,0 +1,71 @@
+# -*-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_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
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+OPTEE_TEST_INSTALL_OPT := install DESTDIR=$(OPTEE_TEST_PKGDIR)/usr/
+
+$(STATEDIR)/optee-test.install:
+	@$(call targetinfo)
+	@$(call world/install, OPTEE_TEST)
+	@mv $(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
-- 
git-series 0.9.1

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2019-02-13  7:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-13  7:25 [ptxdist] [PATCH v2 0/5] Support for OP-TEE (Open Portable Trusted Execution Environment) Rouven Czerwinski
2019-02-13  7:25 ` [ptxdist] [PATCH v2 1/5] optee-client: bump to 3.4.0 Rouven Czerwinski
2019-02-13  7:25 ` [ptxdist] [PATCH v2 2/5] optee-client: add tee-supplicant service file Rouven Czerwinski
2019-02-13  7:25 ` [ptxdist] [PATCH v2 3/5] optee: add the OP-TEE as new target package Rouven Czerwinski
2019-02-13  7:25 ` Rouven Czerwinski [this message]
2019-02-13  7:25 ` [ptxdist] [PATCH v2 5/5] optee-examples: add " Rouven Czerwinski

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=494ef42ab0924ea6849b1e8bbf702875908fa06a.1550042684.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