From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 04 Dec 2025 14:17:23 +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 1vR9D1-007s6L-1U for lore@lore.pengutronix.de; Thu, 04 Dec 2025 14:17:23 +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 1vR9D1-0001rF-9f; Thu, 04 Dec 2025 14:17:23 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vR9AZ-00070z-Mh; Thu, 04 Dec 2025 14:14:51 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vR9AZ-003xaS-1f; Thu, 04 Dec 2025 14:14:51 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1vR9AZ-00000009DZ9-1xaU; Thu, 04 Dec 2025 14:14:51 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 4 Dec 2025 14:14:51 +0100 Message-ID: <20251204131451.2197090-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251119105801.208295-1-s.pueschel@pengutronix.de> References: <20251119105801.208295-1-s.pueschel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] 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?= 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 Thanks, applied as 8f2c877fd4fcec1963d9af032158f18632a53107. Michael [sent from post-receive hook] On Thu, 04 Dec 2025 14:14:51 +0100, Sven Püschel wrote: > 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 > Message-Id: <20251119105801.208295-1-s.pueschel@pengutronix.de> > [mol: disable new option by default] > Signed-off-by: Michael Olbrich > > diff --git a/rules/optee-client.in b/rules/optee-client.in > index cb1033cb0533..baa84f9c9129 100644 > --- a/rules/optee-client.in > +++ b/rules/optee-client.in > @@ -26,4 +26,10 @@ config OPTEE_CLIENT_SUPPLICANT_PLUGINS > bool > prompt "enable TEE supplicant plugins" > > +config OPTEE_CLIENT_SUPPLICANT_RPMB_EMULATION > + bool > + 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 c884000d688c..1bbd1ce63282 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 > > # ----------------------------------------------------------------------------