File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ if(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 OR CONFIG_BOOT_ENCRYPT_EC256)
220
220
# to set MBEDTLS_CONFIG_FILE ourselves. When using Zephyr's copy, this
221
221
# variable is set by its Kconfig in the Zephyr codebase.
222
222
zephyr_library_compile_definitions (
223
- MBEDTLS_CONFIG_FILE= "${CMAKE_CURRENT_LIST_DIR} /include/mcuboot-mbedtls-cfg.h "
223
+ MBEDTLS_CONFIG_FILE= "${CONFIG_MBEDTLS_CFG_FILE} "
224
224
)
225
225
elseif (CONFIG_BOOT_SIGNATURE_TYPE_NONE )
226
226
zephyr_library_include_directories (
@@ -266,7 +266,7 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
266
266
${TINYCRYPT_SHA512_DIR} /source/sha512.c
267
267
)
268
268
zephyr_library_compile_definitions (
269
- MBEDTLS_CONFIG_FILE= "${CMAKE_CURRENT_LIST_DIR} /include/mcuboot-mbedtls-cfg.h "
269
+ MBEDTLS_CONFIG_FILE= "${CONFIG_MBEDTLS_CFG_FILE} "
270
270
)
271
271
else ()
272
272
zephyr_include_directories (include )
Original file line number Diff line number Diff line change @@ -360,13 +360,12 @@ config MCUBOOT_CLEANUP_RAM
360
360
help
361
361
Sets contents of memory to 0 before jumping to application.
362
362
363
- if MBEDTLS
364
-
365
363
config MBEDTLS_CFG_FILE
366
- default "config-tls-generic.h" if MBEDTLS_BUILTIN || BOOT_USE_PSA_CRYPTO
367
- default "mcuboot-mbedtls-cfg.h" if BOOT_USE_MBEDTLS
368
-
369
- endif
364
+ # It might be awkward to define an Mbed TLS header file when TinyCrypt
365
+ # is used, but the fact is that Mbed TLS' ASN1 parse module is used
366
+ # also when TinyCrypt is used as crypto backend.
367
+ default "mcuboot-mbedtls-cfg.h" if BOOT_USE_TINYCRYPT
368
+ default "mcuboot-mbedtls-cfg.h" if BOOT_USE_MBEDTLS && !MBEDTLS_BUILTIN
370
369
371
370
config BOOT_HW_KEY
372
371
bool "Use HW key for image verification"
Original file line number Diff line number Diff line change 1
1
CONFIG_PM=n
2
2
3
3
CONFIG_MAIN_STACK_SIZE=10240
4
- CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
5
4
6
5
CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
7
6
CONFIG_BOOT_ENCRYPT_IMAGE=n
You can’t perform that action at this time.
0 commit comments