* [ptxdist] [PATCH] optee-client: add config option for RPMB emulation
@ 2025-11-19 10:57 Sven Püschel
2025-11-27 11:06 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Sven Püschel @ 2025-11-19 10:57 UTC (permalink / raw)
To: ptxdist; +Cc: Sven Püschel, Michael Tretter
From: Michael Tretter <m.tretter@pengutronix.de>
RPMB emulation is enabled by default in the tee-supplicant. In a
production system, the RPMB shall be backed by the eMMC.
Add an option to disable RPMB emulation.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
---
rules/optee-client.in | 7 +++++++
rules/optee-client.make | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/rules/optee-client.in b/rules/optee-client.in
index cb1033cb0..b68e068d9 100644
--- a/rules/optee-client.in
+++ b/rules/optee-client.in
@@ -26,4 +26,11 @@ config OPTEE_CLIENT_SUPPLICANT_PLUGINS
bool
prompt "enable TEE supplicant plugins"
+config OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION
+ bool
+ default y
+ prompt "enable TEE supplicant RPMB emulation"
+ help
+ Emulate the RPMB in the TEE supplicant instead of using the eMMC.
+
endif
diff --git a/rules/optee-client.make b/rules/optee-client.make
index c884000d6..1bbd1ce63 100644
--- a/rules/optee-client.make
+++ b/rules/optee-client.make
@@ -48,7 +48,7 @@ OPTEE_CLIENT_CONF_OPT := \
-DCFG_TEE_SUPP_LOG_LEVEL=1 \
-DCFG_TEE_SUPP_PLUGINS=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_PLUGINS) \
-DCFG_WERROR=ON \
- -DRPMB_EMU=ON \
+ -DRPMB_EMU=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION) \
-DWITH_TEEACL=ON
# ----------------------------------------------------------------------------
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] optee-client: add config option for RPMB emulation
2025-11-19 10:57 [ptxdist] [PATCH] optee-client: add config option for RPMB emulation Sven Püschel
@ 2025-11-27 11:06 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-11-27 11:06 UTC (permalink / raw)
To: Sven Püschel; +Cc: ptxdist, Michael Tretter
On Wed, Nov 19, 2025 at 11:57:57AM +0100, Sven Püschel wrote:
> From: Michael Tretter <m.tretter@pengutronix.de>
>
> RPMB emulation is enabled by default in the tee-supplicant. In a
> production system, the RPMB shall be backed by the eMMC.
>
> Add an option to disable RPMB emulation.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
> ---
> rules/optee-client.in | 7 +++++++
> rules/optee-client.make | 2 +-
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/rules/optee-client.in b/rules/optee-client.in
> index cb1033cb0..b68e068d9 100644
> --- a/rules/optee-client.in
> +++ b/rules/optee-client.in
> @@ -26,4 +26,11 @@ config OPTEE_CLIENT_SUPPLICANT_PLUGINS
> bool
> prompt "enable TEE supplicant plugins"
>
> +config OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION
> + bool
> + default y
The default should be 'no'. I'll change that while applying this.
This changes things during update, but it should not have been enabled
before anyways.
Michael
> + prompt "enable TEE supplicant RPMB emulation"
> + help
> + Emulate the RPMB in the TEE supplicant instead of using the eMMC.
> +
> endif
> diff --git a/rules/optee-client.make b/rules/optee-client.make
> index c884000d6..1bbd1ce63 100644
> --- a/rules/optee-client.make
> +++ b/rules/optee-client.make
> @@ -48,7 +48,7 @@ OPTEE_CLIENT_CONF_OPT := \
> -DCFG_TEE_SUPP_LOG_LEVEL=1 \
> -DCFG_TEE_SUPP_PLUGINS=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_PLUGINS) \
> -DCFG_WERROR=ON \
> - -DRPMB_EMU=ON \
> + -DRPMB_EMU=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION) \
> -DWITH_TEEACL=ON
>
> # ----------------------------------------------------------------------------
> --
> 2.47.3
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-27 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-19 10:57 [ptxdist] [PATCH] optee-client: add config option for RPMB emulation Sven Püschel
2025-11-27 11:06 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox