[Buildroot] [git commit] package/optee-client: allow disabling RPMB emulation
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Wed Oct 27 20:28:04 UTC 2021
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 <etienne.carriere at linaro.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
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
More information about the buildroot
mailing list