aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Wiklander2020-12-29 11:02:06 -0600
committerJérôme Forissier2021-01-05 08:21:06 -0600
commit313aa2a473173aaf2f5309e3e48e8f6a28abbad5 (patch)
tree9d6faab8b50cb889234ec440a708d8def18af3a2
parent9bbdacba1c6a79152da83b5529d99827fce579af (diff)
downloadti-optee-os-313aa2a473173aaf2f5309e3e48e8f6a28abbad5.tar.gz
ti-optee-os-313aa2a473173aaf2f5309e3e48e8f6a28abbad5.tar.xz
ti-optee-os-313aa2a473173aaf2f5309e3e48e8f6a28abbad5.zip
core: introduce CFG_ENABLE_EMBEDDED_TESTS
Introduces CFG_ENABLE_EMBEDDED_TESTS disabled by default. This flag is used to control the default value of all other embedded tests. This changes the default value of CFG_TEE_CORE_EMBED_INTERNAL_TESTS to 'n' since CFG_ENABLE_EMBEDDED_TESTS defaults to 'n'. A Shippable target is updated with CFG_ENABLE_EMBEDDED_TESTS=y to have these tests compiled in some configuration. Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r--.shippable.yml2
-rw-r--r--mk/config.mk6
2 files changed, 6 insertions, 2 deletions
diff --git a/.shippable.yml b/.shippable.yml
index 8a264bfd3..6d68b52c3 100644
--- a/.shippable.yml
+++ b/.shippable.yml
@@ -28,7 +28,7 @@ build:
28 28
29 - _make 29 - _make
30 - _make COMPILER=clang 30 - _make COMPILER=clang
31 - _make CFG_TEE_CORE_LOG_LEVEL=4 CFG_TEE_CORE_DEBUG=y CFG_TEE_TA_LOG_LEVEL=4 CFG_CC_OPT_LEVEL=0 CFG_DEBUG_INFO=y 31 - _make CFG_TEE_CORE_LOG_LEVEL=4 CFG_TEE_CORE_DEBUG=y CFG_TEE_TA_LOG_LEVEL=4 CFG_CC_OPT_LEVEL=0 CFG_DEBUG_INFO=y CFG_ENABLE_EMBEDDED_TESTS=y
32 - _make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n CFG_TEE_TA_LOG_LEVEL=0 CFG_DEBUG_INFO=n 32 - _make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n CFG_TEE_TA_LOG_LEVEL=0 CFG_DEBUG_INFO=n
33 - _make CFG_TEE_CORE_LOG_LEVEL=0 33 - _make CFG_TEE_CORE_LOG_LEVEL=0
34 - _make CFG_TEE_CORE_MALLOC_DEBUG=y CFG_CORE_DEBUG_CHECK_STACKS=y 34 - _make CFG_TEE_CORE_MALLOC_DEBUG=y CFG_CORE_DEBUG_CHECK_STACKS=y
diff --git a/mk/config.mk b/mk/config.mk
index 9ea088f1c..414ad62b6 100644
--- a/mk/config.mk
+++ b/mk/config.mk
@@ -401,8 +401,12 @@ CFG_DTB_MAX_SIZE ?= 0x10000
401# DTB using the standard fdt_overlay_apply() method. 401# DTB using the standard fdt_overlay_apply() method.
402CFG_EXTERNAL_DTB_OVERLAY ?= n 402CFG_EXTERNAL_DTB_OVERLAY ?= n
403 403
404# All embedded tests are supposed to be disabled by default, this flag
405# is used to control the default value of all other embedded tests
406CFG_ENABLE_EMBEDDED_TESTS ?= n
407
404# Enable core self tests and related pseudo TAs 408# Enable core self tests and related pseudo TAs
405CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= y 409CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= $(CFG_ENABLE_EMBEDDED_TESTS)
406 410
407# This option enables OP-TEE to respond to SMP boot request: the Rich OS 411# This option enables OP-TEE to respond to SMP boot request: the Rich OS
408# issues this to request OP-TEE to release secondaries cores out of reset, 412# issues this to request OP-TEE to release secondaries cores out of reset,