@@ -35,21 +35,20 @@ if(NOT CONFIG_MBEDTLS_BUILTIN AND NOT CONFIG_BOOT_KEY_IMPORT_BYPASS_ASN)
35
35
set (MBEDTLS_ASN1_DIR "${MCUBOOT_DIR} /ext/mbedtls-asn1" )
36
36
assert_exists (MBEDTLS_ASN1_DIR )
37
37
endif ()
38
- set (NRF_DIR "${MCUBOOT_DIR} /ext/nrf" )
38
+ set (MCUBOOT_NRF_EXT_DIR "${MCUBOOT_DIR} /ext/nrf" )
39
39
40
40
if (CONFIG_BOOT_USE_NRF_CC310_BL )
41
- set (NRFXLIB_DIR ${ZEPHYR_BASE} /../nrfxlib )
42
- if (NOT EXISTS ${NRFXLIB_DIR} )
43
- message (FATAL_ERROR "
41
+ if (NOT EXISTS ${ZEPHYR_NRFXLIB_MODULE_DIR} )
42
+ message (FATAL_ERROR "
44
43
------------------------------------------------------------------------
45
- No such file or directory: ${NRFXLIB_DIR }
44
+ No such file or directory: ${ZEPHYR_NRFXLIB_MODULE_DIR }
46
45
The current configuration enables nRF CC310 crypto accelerator hardware
47
46
with the `CONFIG_BOOT_USE_NRF_CC310_BL` option. Please follow
48
47
`ext/nrf/README.md` guide to fix your setup or use tinycrypt instead of
49
48
the HW accelerator.
50
49
To use the tinycrypt set `CONFIG_BOOT_ECDSA_TINYCRYPT` to y.
51
50
------------------------------------------------------------------------" )
52
- endif ()
51
+ endif ()
53
52
endif ()
54
53
55
54
zephyr_library_include_directories (
@@ -218,8 +217,8 @@ if(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 OR CONFIG_BOOT_ENCRYPT_EC256)
218
217
${TINYCRYPT_DIR} /source/utils.c
219
218
)
220
219
elseif (CONFIG_BOOT_USE_NRF_CC310_BL )
221
- zephyr_library_sources (${NRF_DIR } /cc310_glue.c )
222
- zephyr_library_include_directories (${NRF_DIR } )
220
+ zephyr_library_sources (${MCUBOOT_NRF_EXT_DIR } /cc310_glue.c )
221
+ zephyr_library_include_directories (${MCUBOOT_NRF_EXT_DIR } )
223
222
zephyr_link_libraries (nrfxlib_crypto )
224
223
elseif (CONFIG_BOOT_USE_NRF_EXTERNAL_CRYPTO )
225
224
zephyr_include_directories (${BL_CRYPTO_DIR} /../include )
0 commit comments