diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 00daa1119d..a17faa1508 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -2421,6 +2421,10 @@ /* \} name SECTION: Module configuration options */ +#if defined(TARGET_LIKE_MBED) +#include "mbedtls/target_config.h" +#endif + #include "check_config.h" #endif /* MBEDTLS_CONFIG_H */ diff --git a/yotta/data/adjust-config.sh b/yotta/data/adjust-config.sh index 1a2fcb6c3f..1c10733d4d 100755 --- a/yotta/data/adjust-config.sh +++ b/yotta/data/adjust-config.sh @@ -68,5 +68,3 @@ conf unset MBEDTLS_SSL_PROTO_SSL3 conf unset MBEDTLS_SSL_PROTO_TLS1 conf unset MBEDTLS_SSL_PROTO_TLS1_1 conf unset MBEDTLS_SSL_TRUNCATED_HMAC - -perl -pi -e 's/#include "check_config.h"/#include "target_config.h"\n$&/' $FILE