package/optee-client: allow disabling RPMB emulation

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@linaro.org>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Etienne Carriere 2021-10-25 09:34:58 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 18afa41de4
commit 31269b211b
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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