1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-21 12:40:51 +03:00

Add support for MBEDTLS_USER_CONFIG_FILE

This commit is contained in:
Manuel Pégourié-Gonnard
2015-07-31 15:52:30 +02:00
committed by Manuel Pégourié-Gonnard
parent 43569a93cc
commit 32da9f66a8
4 changed files with 36 additions and 1 deletions

View File

@@ -2425,6 +2425,19 @@
#include "mbedtls/target_config.h"
#endif
/*
* Allow user to override any previous default.
*
* Use two macro names for that, as:
* - with yotta the prefix YOTTA_CFG_ is forced
* - without yotta is looks weird to have a YOTTA prefix.
*/
#if defined(YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE)
#include YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE
#elif defined(MBEDTLS_USER_CONFIG_FILE)
#include MBEDTLS_USER_CONFIG_FILE
#endif
#include "check_config.h"
#endif /* MBEDTLS_CONFIG_H */