blob: 9e5a243f8d7f0e6e27da60f9c43238ff1cead540 [file] [log] [blame]
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +02001This directory contains example configuration files.
2
3The examples are generally focused on a particular usage case (eg, support for
4a restricted number of ciphersuites) and aim at minimizing resource usage for
5this target. They can be used as a basis for custom configurations.
6
Bence Szépkútibb0cfeb2021-05-28 09:42:25 +02007These files are complete replacements for the default mbedtls_config.h. To use one of
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +02008them, you can pick one of the following methods:
9
Bence Szépkútibb0cfeb2021-05-28 09:42:25 +0200101. Replace the default file include/mbedtls/mbedtls_config.h with the chosen one.
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020011
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200122. Define MBEDTLS_CONFIG_FILE and adjust the include path accordingly.
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020013 For example, using make:
14
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020015 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" make
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020016
17 Or, using cmake:
18
Manuel Pégourié-Gonnarde80083c2014-11-14 13:52:32 +010019 find . -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} +
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020020 CFLAGS="-I$PWD/configs -DMBEDTLS_CONFIG_FILE='<foo.h>'" cmake .
Manuel Pégourié-Gonnard0bc1f232014-04-30 11:53:50 +020021 make
22
23Note that the second method also works if you want to keep your custom
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000024configuration file outside the mbed TLS tree.