From 31269b211bf31e69f5751d3e486ab7dcb80a9490 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Mon, 25 Oct 2021 09:34:58 +0200 Subject: [PATCH] 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 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- 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