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 v3 5/5] optee-examples: add as new target package
Date: Wed, 13 Feb 2019 09:43:01 +0100	[thread overview]
Message-ID: <bc5669ef8750b1eba3b371f3f7e1aecab7bb54fd.1550047362.git-series.r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <cover.6788eb557443e3550c115efa35ea56b6879cad26.1550047362.git-series.r.czerwinski@pengutronix.de>

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 rules/optee-examples.in   | 10 +++++-
 rules/optee-examples.make | 73 ++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 83 insertions(+)
 create mode 100644 rules/optee-examples.in
 create mode 100644 rules/optee-examples.make

diff --git a/rules/optee-examples.in b/rules/optee-examples.in
new file mode 100644
index 0000000..d221e0d
--- /dev/null
+++ b/rules/optee-examples.in
@@ -0,0 +1,10 @@
+## SECTION=security
+
+config OPTEE_EXAMPLES
+	tristate
+	select OPTEE
+	select OPTEE_CLIENT
+	prompt "optee-examples"
+	help
+	  Install the optee examples package from
+	  https://github.com/linaro-swg/optee_examples
diff --git a/rules/optee-examples.make b/rules/optee-examples.make
new file mode 100644
index 0000000..97028e2
--- /dev/null
+++ b/rules/optee-examples.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_EXAMPLES) += optee-examples
+
+#
+# Paths and names
+#
+OPTEE_EXAMPLES_VERSION	:= 3.4.0
+OPTEE_EXAMPLES_MD5	:= 20bf84c5c647f9270e9edb9bb79f75db
+OPTEE_EXAMPLES		:= optee-examples-$(OPTEE_EXAMPLES_VERSION)
+OPTEE_EXAMPLES_SUFFIX	:= tar.gz
+OPTEE_EXAMPLES_URL	:= https://github.com/linaro-swg/optee_examples/archive/$(OPTEE_EXAMPLES_VERSION).$(OPTEE_EXAMPLES_SUFFIX)
+OPTEE_EXAMPLES_SOURCE	:= $(SRCDIR)/$(OPTEE_EXAMPLES).$(OPTEE_EXAMPLES_SUFFIX)
+OPTEE_EXAMPLES_DIR	:= $(BUILDDIR)/$(OPTEE_EXAMPLES)
+OPTEE_EXAMPLES_LICENSE	:= BSD-2-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPTEE_EXAMPLES_CONF_TOOL := NO
+OPTEE_EXAMPLES_MAKE_ENV	:= \
+	$(CROSS_ENV) \
+	HOST_CROSS_COMPILE=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
+	TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
+	TEEC_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/optee-examples.install:
+	@$(call targetinfo)
+
+	@install -d -m755 $(OPTEE_EXAMPLES_PKGDIR)/usr/lib/optee_armtz
+	@install -d -m755 $(OPTEE_EXAMPLES_PKGDIR)/usr/lib/optee/examples
+	@install -m 644 $(OPTEE_EXAMPLES_DIR)/out/ta/* $(OPTEE_EXAMPLES_PKGDIR)/usr/lib/optee_armtz
+	@install -m 755 $(OPTEE_EXAMPLES_DIR)/out/ca/* $(OPTEE_EXAMPLES_PKGDIR)/usr/lib/optee/examples/
+
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/optee-examples.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, optee-examples)
+	@$(call install_fixup, optee-examples,PRIORITY,optional)
+	@$(call install_fixup, optee-examples,SECTION,base)
+	@$(call install_fixup, optee-examples,AUTHOR,"Rouven Czerwinski <rouven@czerwinskis.de>")
+	@$(call install_fixup, optee-examples,DESCRIPTION,missing)
+
+	@$(call install_tree, optee-examples, 0, 0, -, /usr/lib/optee_armtz)
+	@$(call install_tree, optee-examples, 0, 0, -, /usr/lib/optee/examples/)
+
+	@$(call install_finish, optee-examples)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
git-series 0.9.1

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2019-02-13  8:43 UTC|newest]

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

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=bc5669ef8750b1eba3b371f3f7e1aecab7bb54fd.1550047362.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