From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 16 Sep 2025 21:45:05 +0200 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 1uybbt-003ngW-1O for lore@lore.pengutronix.de; Tue, 16 Sep 2025 21:45:05 +0200 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 1uybbs-0004Fj-Qb; Tue, 16 Sep 2025 21:45:04 +0200 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 1uybbX-0003ry-8V; Tue, 16 Sep 2025 21:44:43 +0200 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 1uybbX-001dpI-0G; Tue, 16 Sep 2025 21:44:43 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1uybbX-00000002NoV-07WR; Tue, 16 Sep 2025 21:44:43 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Tue, 16 Sep 2025 21:44:42 +0200 Message-ID: <20250916194443.568187-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20250908135952.1392919-3-m.tretter@pengutronix.de> References: <20250908135952.1392919-3-m.tretter@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] optee-test: pass OPTEE_CFG to Makefile 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: 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 Thanks, applied as 0a14c9e3f5ca1e3abf3a1668e7bc2e7c59b984a1. Michael [sent from post-receive hook] On Tue, 16 Sep 2025 21:44:42 +0200, Michael Tretter wrote: > The optee-tests re-use some of the configure option for OP-TEE to enable > test suites. For example, the pkcs11 test suite is enabled and build, if > the PKCS#11 TA is enabled for OP-TEE. > > Allow setting these CFG_* options and by default pass the same options > as passed to OP-TEE itself. > > Signed-off-by: Michael Tretter > Message-Id: <20250908135952.1392919-3-m.tretter@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/optee-test.in b/rules/optee-test.in > index 47859a299520..fdc68866b5a7 100644 > --- a/rules/optee-test.in > +++ b/rules/optee-test.in > @@ -1,6 +1,6 @@ > ## SECTION=security > > -config OPTEE_TEST > +menuconfig OPTEE_TEST > tristate > select OPTEE_CLIENT > select OPTEE_CLIENT_SUPPLICANT_PLUGINS > @@ -11,3 +11,18 @@ config OPTEE_TEST > The optee_test git contains the source code for the TEE sanity > testsuite in Linux using the ARM(R) TrustZone(R) technology. It is > distributed under the GPLv2 and BSD 2-clause open-source licenses. > + > +if OPTEE_TEST > + > +config OPTEE_TEST_CFG > + string > + prompt "OP-TEE CFG Flags" > + default "${PTXCONF_OPTEE_CFG}" > + help > + The optee-tests use some of the OP-TEE CFG flags for its own > + configuration and enabling test suites. Allow the user to pass > + additional options to configure the optee-tests. > + > + By default, pass the same options as passeed to OP-TEE. > + > +endif > diff --git a/rules/optee-test.make b/rules/optee-test.make > index 038b3461b342..fb70f44cca96 100644 > --- a/rules/optee-test.make > +++ b/rules/optee-test.make > @@ -40,6 +40,7 @@ OPTEE_TEST_MAKE_ENV := \ > TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \ > OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \ > CFG_TEE_PLUGIN_LOAD_PATH=/usr/lib/tee-supplicant/plugins \ > + $(call remove_quotes,$(PTXCONF_OPTEE_TEST_CFG)) \ > bindir=/usr/bin \ > libdir=/usr/lib >