@@ -27,21 +27,20 @@ assert_exists(FIAT_DIR)
27
27
# Path to mbed-tls' asn1 parser library.
28
28
set (MBEDTLS_ASN1_DIR "${MCUBOOT_DIR} /ext/mbedtls-asn1" )
29
29
assert_exists (MBEDTLS_ASN1_DIR )
30
- set (NRF_DIR "${MCUBOOT_DIR} /ext/nrf" )
30
+ set (MCUBOOT_NRF_EXT_DIR "${MCUBOOT_DIR} /ext/nrf" )
31
31
32
32
if (CONFIG_BOOT_USE_NRF_CC310_BL )
33
- set (NRFXLIB_DIR ${ZEPHYR_BASE} /../nrfxlib )
34
- if (NOT EXISTS ${NRFXLIB_DIR} )
35
- message (FATAL_ERROR "
33
+ if (NOT EXISTS ${ZEPHYR_NRFXLIB_MODULE_DIR} )
34
+ message (FATAL_ERROR "
36
35
------------------------------------------------------------------------
37
- No such file or directory: ${NRFXLIB_DIR }
36
+ No such file or directory: ${ZEPHYR_NRFXLIB_MODULE_DIR }
38
37
The current configuration enables nRF CC310 crypto accelerator hardware
39
38
with the `CONFIG_BOOT_USE_NRF_CC310_BL` option. Please follow
40
39
`ext/nrf/README.md` guide to fix your setup or use tinycrypt instead of
41
40
the HW accelerator.
42
41
To use the tinycrypt set `CONFIG_BOOT_ECDSA_TINYCRYPT` to y.
43
42
------------------------------------------------------------------------" )
44
- endif ()
43
+ endif ()
45
44
endif ()
46
45
47
46
zephyr_library_include_directories (
@@ -169,8 +168,8 @@ if(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 OR CONFIG_BOOT_ENCRYPT_EC256)
169
168
${TINYCRYPT_DIR} /source/utils.c
170
169
)
171
170
elseif (CONFIG_BOOT_USE_NRF_CC310_BL )
172
- zephyr_library_sources (${NRF_DIR } /cc310_glue.c )
173
- zephyr_library_include_directories (${NRF_DIR } )
171
+ zephyr_library_sources (${MCUBOOT_NRF_EXT_DIR } /cc310_glue.c )
172
+ zephyr_library_include_directories (${MCUBOOT_NRF_EXT_DIR } )
174
173
zephyr_link_libraries (nrfxlib_crypto )
175
174
elseif (CONFIG_BOOT_USE_NRF_EXTERNAL_CRYPTO )
176
175
zephyr_include_directories (${BL_CRYPTO_DIR} /../include )
0 commit comments