@@ -29,21 +29,20 @@ if(NOT CONFIG_MBEDTLS_BUILTIN AND NOT CONFIG_BOOT_KEY_IMPORT_BYPASS_ASN)
29
29
set (MBEDTLS_ASN1_DIR "${MCUBOOT_DIR} /ext/mbedtls-asn1" )
30
30
assert_exists(MBEDTLS_ASN1_DIR)
31
31
endif ()
32
- set (NRF_DIR "${MCUBOOT_DIR} /ext/nrf" )
32
+ set (MCUBOOT_NRF_EXT_DIR "${MCUBOOT_DIR} /ext/nrf" )
33
33
34
34
if (CONFIG_BOOT_USE_NRF_CC310_BL)
35
- set (NRFXLIB_DIR ${ZEPHYR_BASE} /../nrfxlib)
36
- if (NOT EXISTS ${NRFXLIB_DIR} )
37
- message (FATAL_ERROR "
35
+ if (NOT EXISTS ${ZEPHYR_NRFXLIB_MODULE_DIR} )
36
+ message (FATAL_ERROR "
38
37
------------------------------------------------------------------------
39
- No such file or directory: ${NRFXLIB_DIR }
38
+ No such file or directory: ${ZEPHYR_NRFXLIB_MODULE_DIR }
40
39
The current configuration enables nRF CC310 crypto accelerator hardware
41
40
with the `CONFIG_BOOT_USE_NRF_CC310_BL` option. Please follow
42
41
`ext/nrf/README.md` guide to fix your setup or use tinycrypt instead of
43
42
the HW accelerator.
44
43
To use the tinycrypt set `CONFIG_BOOT_ECDSA_TINYCRYPT` to y.
45
44
------------------------------------------------------------------------" )
46
- endif ()
45
+ endif ()
47
46
endif ()
48
47
49
48
zephyr_library_include_directories(
@@ -191,8 +190,8 @@ if(CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 OR CONFIG_BOOT_ENCRYPT_EC256)
191
190
${TINYCRYPT_DIR} /source /utils.c
192
191
)
193
192
elseif (CONFIG_BOOT_USE_NRF_CC310_BL)
194
- zephyr_library_sources(${NRF_DIR } /cc310_glue.c)
195
- zephyr_library_include_directories(${NRF_DIR } )
193
+ zephyr_library_sources(${MCUBOOT_NRF_EXT_DIR } /cc310_glue.c)
194
+ zephyr_library_include_directories(${MCUBOOT_NRF_EXT_DIR } )
196
195
zephyr_link_libraries(nrfxlib_crypto)
197
196
elseif (CONFIG_BOOT_USE_NRF_EXTERNAL_CRYPTO)
198
197
zephyr_include_directories(${BL_CRYPTO_DIR} /../include )
0 commit comments