[Buildroot] [git commit] package/optee-client: allow disabling RPMB emulation

From: Arnout Vandecappelle (Essensium/Mind) <hidden>
Date: 2021-10-27 20:31:44
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=31269b211bf31e69f5751d3e486ab7dcb80a9490
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Add configuration switch BR2_PACKAGE_OPTEE_CLIENT_RPMB_EMU to define
whether RPMB emulation is enabled or not. It is default enabled for
backward compatibility.

Signed-off-by: Etienne Carriere <redacted>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <redacted>
---
 package/optee-client/Config.in       | 6 ++++++
 package/optee-client/optee-client.mk | 6 ++++++
 2 files changed, 12 insertions(+)
diff --git a/package/optee-client/Config.in b/package/optee-client/Config.in
index e774d70484..cc7f176c77 100644
--- a/package/optee-client/Config.in
+++ b/package/optee-client/Config.in
@@ -24,6 +24,12 @@ config BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH
 	  normal world OS providing the actual storage via
 	  tee-supplicant.
 
+config BR2_PACKAGE_OPTEE_CLIENT_RPMB_EMU
+	bool "Enable RPMB emulation"
+	default y
+	help
+	  Enable RPMB device emulation in tee-supplicant.
+
 config BR2_PACKAGE_OPTEE_CLIENT_SUPP_PLUGINS
 	bool "Enable TEE supplicant plugins"
 	default y
diff --git a/package/optee-client/optee-client.mk b/package/optee-client/optee-client.mk
index 9a73a8a761..dda9a2855d 100644
--- a/package/optee-client/optee-client.mk
+++ b/package/optee-client/optee-client.mk
@@ -14,6 +14,12 @@ OPTEE_CLIENT_CONF_OPTS = \
 	-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \
 	-DCFG_WERROR=OFF
 
+ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_RPMB_EMU),y)
+OPTEE_CLIENT_CONF_OPTS += -DRPMB_EMU=ON
+else
+OPTEE_CLIENT_CONF_OPTS += -DRPMB_EMU=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_SUPP_PLUGINS),y)
 OPTEE_CLIENT_CONF_OPTS += -DCFG_TEE_SUPP_PLUGINS=ON
 else
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help