[Buildroot] [PATCH 7/7] package/optee-client: allow disabling RPMB emulation
Etienne Carriere
etienne.carriere at linaro.org
Mon Oct 25 07:34:58 UTC 2021
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>
---
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 2547fc0ce3..4e46b0ba6c 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"
depends on !BR2_STATIC_LIBS # dlfcn.h
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
--
2.17.1
More information about the buildroot
mailing list