mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 5/5] optee_examples: add as new target package
Date: Mon, 4 Feb 2019 15:54:47 +0100	[thread overview]
Message-ID: <20190204145447.eg25l2qvxfluerd3@pengutronix.de> (raw)
In-Reply-To: <33d7950039071d8898401213119006d38f8eb8dc.1549274148.git-series.r.czerwinski@pengutronix.de>

On Mon, Feb 04, 2019 at 10:56:02AM +0100, Rouven Czerwinski wrote:
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  rules/optee_examples.in   | 10 +++++-
>  rules/optee_examples.make | 77 ++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 87 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..304048f
> --- /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..30acd0b
> --- /dev/null
> +++ b/rules/optee_examples.make
> @@ -0,0 +1,77 @@
> +# -*-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

No _

> +
> +#
> +# 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_MAKE_ENV	:= $(CROSS_ENV)
> +OPTEE_EXAMPLES_CONF_TOOL := NO
> +
> +OPTEE_EXAMPLES_MAKE_ENV += HOST_CROSS_COMPILE=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX))
> +OPTEE_EXAMPLES_MAKE_ENV += TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os
> +OPTEE_EXAMPLES_MAKE_ENV += TEEC_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr

+OPTEE_EXAMPLES_MAKE_ENV := \
	$(CROSS_ENV) \
	...

> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/optee_examples.install:
> +	@$(call targetinfo)

install the stuff here to OPTEE_EXAMPLES_PKGDIR

> +	@$(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_copy, optee_examples, 0, 0, 0755, /opt/examples)

This is implied by the install_tree below.


> +	@$(call install_copy, optee_examples, 0, 0, 0755, /lib/optee_armtz)

same here.

> +	@$(call install_glob, optee_examples, 0, 0, $(OPTEE_EXAMPLES_DIR)/out/ta/, /lib/optee_armtz, *.ta, -)
> +	@$(call install_tree, optee_examples, 0, 0, $(OPTEE_EXAMPLES_DIR)/out/ca/, /opt/examples/)

Why /opt? Maybe /usr/lib/optee/examples?

Michael

> +
> +	@$(call install_finish, optee_examples)
> +
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Clean
> +# ----------------------------------------------------------------------------
> +
> +#$(STATEDIR)/optee_examples.clean:
> +#	@$(call targetinfo)
> +#	@$(call clean_pkg, OPTEE_EXAMPLES)
> +
> +# vim: syntax=make
> -- 
> git-series 0.9.1
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2019-02-04 14:54 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 ` [ptxdist] [PATCH 4/5] optee_test: add new optee_test " Rouven Czerwinski
2019-02-04 14:43   ` 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 [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=20190204145447.eg25l2qvxfluerd3@pengutronix.de \
    --to=m.olbrich@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