mbed TLS Build

Dependents:   Slave-prot-prod

Committer:
markrad
Date:
Thu Jan 05 00:18:44 2017 +0000
Revision:
0:cdf462088d13
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1 This directory contains example configuration files.
markrad 0:cdf462088d13 2
markrad 0:cdf462088d13 3 The examples are generally focused on a particular usage case (eg, support for
markrad 0:cdf462088d13 4 a restricted number of ciphersuites) and aim at minimizing resource usage for
markrad 0:cdf462088d13 5 this target. They can be used as a basis for custom configurations.
markrad 0:cdf462088d13 6
markrad 0:cdf462088d13 7 These files are complete replacements for the default config.h. To use one of
markrad 0:cdf462088d13 8 them, you can pick one of the following methods:
markrad 0:cdf462088d13 9
markrad 0:cdf462088d13 10 1. Replace the default file include/mbedtls/config.h with the chosen one.
markrad 0:cdf462088d13 11 (Depending on your compiler, you may need to ajust the line with
markrad 0:cdf462088d13 12 #include "mbedtls/check_config.h" then.)
markrad 0:cdf462088d13 13
markrad 0:cdf462088d13 14 2. Define MBEDTLS_CONFIG_FILE and adjust the include path accordingly.
markrad 0:cdf462088d13 15 For example, using make:
markrad 0:cdf462088d13 16
markrad 0:cdf462088d13 17 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" make
markrad 0:cdf462088d13 18
markrad 0:cdf462088d13 19 Or, using cmake:
markrad 0:cdf462088d13 20
markrad 0:cdf462088d13 21 find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
markrad 0:cdf462088d13 22 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" cmake .
markrad 0:cdf462088d13 23 make
markrad 0:cdf462088d13 24
markrad 0:cdf462088d13 25 Note that the second method also works if you want to keep your custom
markrad 0:cdf462088d13 26 configuration file outside the mbed TLS tree.