From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile
Date: Mon, 8 Sep 2025 15:59:52 +0200 [thread overview]
Message-ID: <20250908135952.1392919-3-m.tretter@pengutronix.de> (raw)
In-Reply-To: <20250908135952.1392919-1-m.tretter@pengutronix.de>
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 <m.tretter@pengutronix.de>
---
rules/optee-test.in | 17 ++++++++++++++++-
rules/optee-test.make | 1 +
2 files changed, 17 insertions(+), 1 deletion(-)
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
--
2.47.3
prev parent reply other threads:[~2025-09-08 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-08 13:59 [ptxdist] [PATCH 1/3] optee-test: drop OPTEE_OPENSSL_EXPORT Michael Tretter
2025-09-08 13:59 ` [ptxdist] [PATCH 2/3] optee-test: drop COMPILE_NS_USER Michael Tretter
2025-09-08 13:59 ` Michael Tretter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250908135952.1392919-3-m.tretter@pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox