Introduce BR2_PACKAGE_OPTEE_TEST_EXT_WITH_TLS_TESTS
Conditionally enable Thread Local Storage tests in the
optee_test_ext Buildroot package. Some toolchains may not support this
feature [1] so it is best to let the user decide.
common.mk enables the tests by default since the GCC toolchain from
toolchain.mk supports them. The command line option is
'make WITH_TLS_TESTS=y|n'.
Link: https://github.com/OP-TEE/optee_test/commit/30efcbeaf8864d0f2a5c4be593a5411001fab31b
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/br-ext/package/optee_test_ext/Config.in b/br-ext/package/optee_test_ext/Config.in
index d3fa2a7..e613185 100644
--- a/br-ext/package/optee_test_ext/Config.in
+++ b/br-ext/package/optee_test_ext/Config.in
@@ -37,4 +37,10 @@
Test Suite with Excluded Tests List v2.0.0.2" with the file name
TEE_Initial_Configuration-Test_Suite_v2_0_0_2-2017_06_09.7z
+config BR2_PACKAGE_OPTEE_TEST_EXT_WITH_TLS_TESTS
+ bool "with-tls-tests"
+ help
+ Select Thread Local Storage tests in Trusted Applications. Some
+ toolchains may not support this.
+
endif