Use #ifdef rather than patch for target_config.h

This commit is contained in:
Manuel Pégourié-Gonnard
2015-08-06 09:57:54 +02:00
committed by Manuel Pégourié-Gonnard
parent c5e0372056
commit 43569a93cc
2 changed files with 4 additions and 2 deletions
+4
View File
@@ -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 */
-2
View File
@@ -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