* [ptxdist] [PATCH 1/3] optee-test: drop OPTEE_OPENSSL_EXPORT
@ 2025-09-08 13:59 Michael Tretter
2025-09-08 13:59 ` [ptxdist] [PATCH 2/3] optee-test: drop COMPILE_NS_USER Michael Tretter
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Michael Tretter @ 2025-09-08 13:59 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
The option has been removed in Commit f4dd113528cf ("Remove embedded
OpenSSL"). The Makefile now uses either -lcrypto or
$(OPENSSL_INSTALL_PATH).
Remove the obsolete option.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
rules/optee-test.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/optee-test.make b/rules/optee-test.make
index 6f0951ddb93f..69937442a613 100644
--- a/rules/optee-test.make
+++ b/rules/optee-test.make
@@ -39,7 +39,7 @@ OPTEE_TEST_MAKE_ENV := \
CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
- COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib \
+ COMPILE_NS_USER=32 \
CFG_TEE_PLUGIN_LOAD_PATH=/usr/lib/tee-supplicant/plugins \
bindir=/usr/bin \
libdir=/usr/lib
--
2.47.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 2/3] optee-test: drop COMPILE_NS_USER
2025-09-08 13:59 [ptxdist] [PATCH 1/3] optee-test: drop OPTEE_OPENSSL_EXPORT Michael Tretter
@ 2025-09-08 13:59 ` Michael Tretter
2025-09-16 19:44 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-08 13:59 ` [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile Michael Tretter
2025-09-16 19:44 ` [ptxdist] [APPLIED] optee-test: drop OPTEE_OPENSSL_EXPORT Michael Olbrich
2 siblings, 1 reply; 6+ messages in thread
From: Michael Tretter @ 2025-09-08 13:59 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
The COMPILE_NS_USER option was used to specify the arch to link against
the correct version of libcrypto. This is now detected automatically.
Drop the obsolete COMPILE_NS_USER option.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
rules/optee-test.make | 1 -
1 file changed, 1 deletion(-)
diff --git a/rules/optee-test.make b/rules/optee-test.make
index 69937442a613..038b3461b342 100644
--- a/rules/optee-test.make
+++ b/rules/optee-test.make
@@ -39,7 +39,6 @@ OPTEE_TEST_MAKE_ENV := \
CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
- COMPILE_NS_USER=32 \
CFG_TEE_PLUGIN_LOAD_PATH=/usr/lib/tee-supplicant/plugins \
bindir=/usr/bin \
libdir=/usr/lib
--
2.47.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [APPLIED] optee-test: drop COMPILE_NS_USER
2025-09-08 13:59 ` [ptxdist] [PATCH 2/3] optee-test: drop COMPILE_NS_USER Michael Tretter
@ 2025-09-16 19:44 ` Michael Olbrich
0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2025-09-16 19:44 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
Thanks, applied as d104e45786878291232c5762a0ea9074f72958b1.
Michael
[sent from post-receive hook]
On Tue, 16 Sep 2025 21:44:41 +0200, Michael Tretter <m.tretter@pengutronix.de> wrote:
> The COMPILE_NS_USER option was used to specify the arch to link against
> the correct version of libcrypto. This is now detected automatically.
>
> Drop the obsolete COMPILE_NS_USER option.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Message-Id: <20250908135952.1392919-2-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/optee-test.make b/rules/optee-test.make
> index 69937442a613..038b3461b342 100644
> --- a/rules/optee-test.make
> +++ b/rules/optee-test.make
> @@ -39,7 +39,6 @@ OPTEE_TEST_MAKE_ENV := \
> CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
> TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
> OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
> - COMPILE_NS_USER=32 \
> CFG_TEE_PLUGIN_LOAD_PATH=/usr/lib/tee-supplicant/plugins \
> bindir=/usr/bin \
> libdir=/usr/lib
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile
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
2025-09-16 19:44 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-16 19:44 ` [ptxdist] [APPLIED] optee-test: drop OPTEE_OPENSSL_EXPORT Michael Olbrich
2 siblings, 1 reply; 6+ messages in thread
From: Michael Tretter @ 2025-09-08 13:59 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [APPLIED] optee-test: pass OPTEE_CFG to Makefile
2025-09-08 13:59 ` [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile Michael Tretter
@ 2025-09-16 19:44 ` Michael Olbrich
0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2025-09-16 19:44 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
Thanks, applied as 0a14c9e3f5ca1e3abf3a1668e7bc2e7c59b984a1.
Michael
[sent from post-receive hook]
On Tue, 16 Sep 2025 21:44:42 +0200, Michael Tretter <m.tretter@pengutronix.de> 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 <m.tretter@pengutronix.de>
> Message-Id: <20250908135952.1392919-3-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [APPLIED] optee-test: drop OPTEE_OPENSSL_EXPORT
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 ` [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile Michael Tretter
@ 2025-09-16 19:44 ` Michael Olbrich
2 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2025-09-16 19:44 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
Thanks, applied as 666ae4ab0aa0e9a7f93f62eeb793cce96165ccc7.
Michael
[sent from post-receive hook]
On Tue, 16 Sep 2025 21:44:41 +0200, Michael Tretter <m.tretter@pengutronix.de> wrote:
> The option has been removed in Commit f4dd113528cf ("Remove embedded
> OpenSSL"). The Makefile now uses either -lcrypto or
> $(OPENSSL_INSTALL_PATH).
>
> Remove the obsolete option.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Message-Id: <20250908135952.1392919-1-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/optee-test.make b/rules/optee-test.make
> index 6f0951ddb93f..69937442a613 100644
> --- a/rules/optee-test.make
> +++ b/rules/optee-test.make
> @@ -39,7 +39,7 @@ OPTEE_TEST_MAKE_ENV := \
> CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
> TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
> OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
> - COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib \
> + COMPILE_NS_USER=32 \
> CFG_TEE_PLUGIN_LOAD_PATH=/usr/lib/tee-supplicant/plugins \
> bindir=/usr/bin \
> libdir=/usr/lib
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-09-16 19:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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-16 19:44 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-08 13:59 ` [ptxdist] [PATCH 3/3] optee-test: pass OPTEE_CFG to Makefile Michael Tretter
2025-09-16 19:44 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-09-16 19:44 ` [ptxdist] [APPLIED] optee-test: drop OPTEE_OPENSSL_EXPORT Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox