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