aboutsummaryrefslogtreecommitdiff
path: root/mk/config.mk
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-05-18 15:49:22 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-05-22 15:23:06 +0200
commita97bc4a084f1292c3a2cfd0c4593183b2f873e67 (patch)
tree172531e5959e24bc52a1cccbce993803f7c23382 /mk/config.mk
parent817466cb476de705a8e3dabe1ef165fe27a18c2f (diff)
libmbedtls: configure and compile mbedtls
Configures mbedtls with a minimal user mode TA configuration and makes it compile. Adds dummy include/mbedtls_config_kernel.h to give a good error message in case mbedTLS is compiled in for kernel mode. mbedTLS is enabled for TAs with CFG_TA_MBEDTLS = y Builtin self tests are enabled with CFG_TA_MBEDTLS_SELF_TEST = y Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'mk/config.mk')
-rw-r--r--mk/config.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/config.mk b/mk/config.mk
index 1bc12086..b3d95432 100644
--- a/mk/config.mk
+++ b/mk/config.mk
@@ -315,3 +315,10 @@ CFG_TA_BIGNUM_MAX_BITS ?= 2048
# implemented by the TEE core.
# Set this to a lower value to reduce the memory footprint.
CFG_CORE_BIGNUM_MAX_BITS ?= 4096
+
+# Compiles mbedTLS for TA usage
+CFG_TA_MBEDTLS ?= y
+
+# Compile the TA library mbedTLS with self test functions, the functions
+# need to be called to test anything
+CFG_TA_MBEDTLS_SELF_TEST ?= y