File tree 5 files changed +8
-7
lines changed
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,3 @@ pkg.deps:
28
28
- " @apache-mynewt-core/sys/log"
29
29
- " @apache-mynewt-core/crypto/mbedtls"
30
30
- " @apache-mynewt-core/crypto/tinycrypt"
31
-
32
- pkg.cflags : ' -DMBEDTLS_USER_CONFIG_FILE="mbedtls/config_mynewt.h"'
Original file line number Diff line number Diff line change @@ -28,5 +28,3 @@ pkg.deps:
28
28
- " @apache-mynewt-core/sys/log"
29
29
- " @apache-mynewt-core/crypto/mbedtls"
30
30
- " @apache-mynewt-core/crypto/tinycrypt"
31
-
32
- pkg.cflags : ' -DMBEDTLS_USER_CONFIG_FILE="mbedtls/config_mynewt.h"'
Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ extern "C" {
42
42
#define MBEDTLS_NO_PLATFORM_ENTROPY
43
43
#undef MBEDTLS_NET_C
44
44
45
- #ifndef TEST
46
45
#undef MBEDTLS_SELF_TEST
46
+ #if MYNEWT_VAL (TEST )
47
+ #define MBEDTLS_SELF_TEST
47
48
#endif
48
49
49
50
#define MBEDTLS_SHA256_SMALLER /* Comes with performance hit */
Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ pkg.keywords:
26
26
- tls
27
27
pkg.type : sdk
28
28
29
- pkg .cflags :
29
+ app .cflags :
30
30
- ' -DMBEDTLS_USER_CONFIG_FILE=<mbedtls/config_mynewt.h>'
31
+
32
+ pkg.cflags :
31
33
- -Wno-maybe-uninitialized
32
34
- -Wno-unknown-warning-option
33
35
pkg.cflags.TEST : -DTEST
Original file line number Diff line number Diff line change @@ -119,8 +119,10 @@ syscfg.defs:
119
119
value : 0
120
120
MBEDTLS_CIPHER_MODE_CFB :
121
121
value : 0
122
+ # XXX: This should be 0 on default, but mcuboot's test needs this enabled. Until a new mcuboot version with this
123
+ # config enabled is released we have to enable this by default.
122
124
MBEDTLS_CIPHER_MODE_CTR :
123
- value : 0
125
+ value : 1
124
126
MBEDTLS_CIPHER_MODE_OFB :
125
127
value : 0
126
128
MBEDTLS_CIPHER_MODE_XTS :
You can’t perform that action at this time.
0 commit comments