mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] rules: optee-client: Allow enabling/disabling the rpmb emulator
@ 2020-11-24 13:41 Robin van der Gracht
  2020-11-25 14:12 ` robin
  0 siblings, 1 reply; 2+ messages in thread
From: Robin van der Gracht @ 2020-11-24 13:41 UTC (permalink / raw)
  To: ptxdist; +Cc: Robin van der Gracht

Its enabled by default for backwards compatibility.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
---
 rules/optee-client.in   | 5 +++++
 rules/optee-client.make | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/rules/optee-client.in b/rules/optee-client.in
index be97b36..e5758ef 100644
--- a/rules/optee-client.in
+++ b/rules/optee-client.in
@@ -20,4 +20,9 @@ config OPTEE_CLIENT_SYSTEMD_UNIT
 	depends on SYSTEMD
 	prompt "install systemd service file for tee-supplicant"
 
+config OPTEE_CLIENT_RPMB_EMU
+	bool
+	default y
+	prompt "Emulate RPMB device for testing"
+
 endif
diff --git a/rules/optee-client.make b/rules/optee-client.make
index 7fbebf1..797037e 100644
--- a/rules/optee-client.make
+++ b/rules/optee-client.make
@@ -32,7 +32,8 @@ OPTEE_CLIENT_MAKE_ENV := \
 	$(CROSS_ENV) \
 	LIBDIR=/usr/lib \
 	INCLUDEDIR=/usr/include \
-	CFG_TEE_CLIENT_LOAD_PATH=/usr/lib/
+	CFG_TEE_CLIENT_LOAD_PATH=/usr/lib/ \
+	RPMB_EMU=$(call ptx/ifdef, PTXCONF_OPTEE_CLIENT_RPMB_EMU, 1, 0)
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.25.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] rules: optee-client: Allow enabling/disabling the rpmb emulator
  2020-11-24 13:41 [ptxdist] [PATCH] rules: optee-client: Allow enabling/disabling the rpmb emulator Robin van der Gracht
@ 2020-11-25 14:12 ` robin
  0 siblings, 0 replies; 2+ messages in thread
From: robin @ 2020-11-25 14:12 UTC (permalink / raw)
  To: ptxdist

On 2020-11-24 14:41, Robin van der Gracht wrote:
> Its enabled by default for backwards compatibility.
> 
> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
> ---
>  rules/optee-client.in   | 5 +++++
>  rules/optee-client.make | 3 ++-
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/optee-client.in b/rules/optee-client.in
> index be97b36..e5758ef 100644
> --- a/rules/optee-client.in
> +++ b/rules/optee-client.in
> @@ -20,4 +20,9 @@ config OPTEE_CLIENT_SYSTEMD_UNIT
>  	depends on SYSTEMD
>  	prompt "install systemd service file for tee-supplicant"
> 
> +config OPTEE_CLIENT_RPMB_EMU
> +	bool
> +	default y
> +	prompt "Emulate RPMB device for testing"
> +
>  endif
> diff --git a/rules/optee-client.make b/rules/optee-client.make
> index 7fbebf1..797037e 100644
> --- a/rules/optee-client.make
> +++ b/rules/optee-client.make
> @@ -32,7 +32,8 @@ OPTEE_CLIENT_MAKE_ENV := \
>  	$(CROSS_ENV) \
>  	LIBDIR=/usr/lib \
>  	INCLUDEDIR=/usr/include \
> -	CFG_TEE_CLIENT_LOAD_PATH=/usr/lib/
> +	CFG_TEE_CLIENT_LOAD_PATH=/usr/lib/ \
> +	RPMB_EMU=$(call ptx/ifdef, PTXCONF_OPTEE_CLIENT_RPMB_EMU, 1, 0)
> 
>  # 
> ----------------------------------------------------------------------------
>  # Target-Install

NOTE: Follow commit needs to be included in optee-client for this to 
work.

https://github.com/OP-TEE/optee_client/commit/a0d685745ae00bfc275c27a07565f490de48b5e2

This is not true for the version included in PTXdist (3.5.0). The latest 
tagged
release also doesn't have the commit yet, its only in 'master'. We might 
have to
add it separately in the patches directory.

I'll re-submit a patch soon.

Regards,
Robin

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-25 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 13:41 [ptxdist] [PATCH] rules: optee-client: Allow enabling/disabling the rpmb emulator Robin van der Gracht
2020-11-25 14:12 ` robin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox