From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Nov 2025 11:58:39 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLftX-002dH6-2Q for lore@lore.pengutronix.de; Wed, 19 Nov 2025 11:58:39 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vLftX-0003IT-Jo; Wed, 19 Nov 2025 11:58:39 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vLftJ-0003I8-E3; Wed, 19 Nov 2025 11:58:25 +0100 From: =?UTF-8?q?Sven=20P=C3=BCschel?= To: ptxdist@pengutronix.de Date: Wed, 19 Nov 2025 11:57:57 +0100 Message-ID: <20251119105801.208295-1-s.pueschel@pengutronix.de> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] optee-client: add config option for RPMB emulation X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Sven=20P=C3=BCschel?= , Michael Tretter Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false From: Michael Tretter RPMB emulation is enabled by default in the tee-supplicant. In a production system, the RPMB shall be backed by the eMMC. Add an option to disable RPMB emulation. Signed-off-by: Michael Tretter Signed-off-by: Sven Püschel --- rules/optee-client.in | 7 +++++++ rules/optee-client.make | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rules/optee-client.in b/rules/optee-client.in index cb1033cb0..b68e068d9 100644 --- a/rules/optee-client.in +++ b/rules/optee-client.in @@ -26,4 +26,11 @@ config OPTEE_CLIENT_SUPPLICANT_PLUGINS bool prompt "enable TEE supplicant plugins" +config OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION + bool + default y + prompt "enable TEE supplicant RPMB emulation" + help + Emulate the RPMB in the TEE supplicant instead of using the eMMC. + endif diff --git a/rules/optee-client.make b/rules/optee-client.make index c884000d6..1bbd1ce63 100644 --- a/rules/optee-client.make +++ b/rules/optee-client.make @@ -48,7 +48,7 @@ OPTEE_CLIENT_CONF_OPT := \ -DCFG_TEE_SUPP_LOG_LEVEL=1 \ -DCFG_TEE_SUPP_PLUGINS=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_PLUGINS) \ -DCFG_WERROR=ON \ - -DRPMB_EMU=ON \ + -DRPMB_EMU=$(call ptx/onoff, PTXCONF_OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION) \ -DWITH_TEEACL=ON # ---------------------------------------------------------------------------- -- 2.47.3