File tree Expand file tree Collapse file tree 1 file changed +20
-15
lines changed
features/mbedtls/importer Expand file tree Collapse file tree 1 file changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -37,23 +37,28 @@ add_code() {
37
37
38
38
# add an #ifndef to include config-no-entropy.h when the target does not have
39
39
# an entropy source we can use.
40
- add_code \
41
- " #ifndef MBEDTLS_CONFIG_H\n" \
42
- " \n" \
43
- " #include \" platform\/inc\/platform_mbed.h\" \n" \
44
- " \n" \
45
- " \/*\n" \
46
- " * Only use features that do not require an entropy source when\n" \
47
- " * DEVICE_ENTROPY_SOURCE is not defined in mbed OS.\n" \
48
- " *\/\n" \
49
- " #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT)\n" \
50
- " #include \" mbedtls\/config-no-entropy.h\" \n" \
40
+ add_code \
41
+ " #ifndef MBEDTLS_CONFIG_H\n" \
42
+ " \n" \
43
+ " #include \" platform\/inc\/platform_mbed.h\" \n" \
44
+ " \n" \
45
+ " \/*\n" \
46
+ " * Only use features that do not require an entropy source when\n" \
47
+ " * DEVICE_ENTROPY_SOURCE is not defined in mbed OS.\n" \
48
+ " *\/\n" \
49
+ " #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && !defined(MBEDTLS_TEST_NULL_ENTROPY)\n" \
50
+ " #include \" mbedtls\/config-no-entropy.h\" \n" \
51
+ " \n" \
52
+ " #if defined(MBEDTLS_USER_CONFIG_FILE)\n" \
53
+ " #include MBEDTLS_USER_CONFIG_FILE\n" \
54
+ " #endif\n" \
55
+ " \n" \
51
56
" #else\n"
52
57
53
- add_code \
54
- " #include \" check_config.h\" \n" \
55
- " \n" \
56
- " #endif \/* !MBEDTLS_ENTROPY_HARDWARE_ALT *\/"
58
+ add_code \
59
+ " #include \" check_config.h\" \n" \
60
+ " \n" \
61
+ " #endif \/* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_TEST_NULL_ENTROPY *\/"
57
62
58
63
# not supported on mbed OS, nor used by mbed Client
59
64
conf unset MBEDTLS_NET_C
You can’t perform that action at this time.
0 commit comments