Skip to content

Commit 2dbfddd

Browse files
sigvartmhmbolivar-nordic
authored andcommitted
[nrf noup] zephyr: Remove duplication from Kconfig and cmake
Removes `NRFXLIB_CRYPTO`, `NRF_CC310_BL` and the `add_subdirectory` of nrfxlib it will still check that the nrfxlib is located outside the mcuboot directory. Signed-off-by: Sigvart Hovland <[email protected]> Signed-off-by: Andrzej Puzdrowski <[email protected]> Signed-off-by: Marti Bolivar <[email protected]> (cherry picked from commit 73d4cd1)
1 parent d112524 commit 2dbfddd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ set(NRF_DIR "${MCUBOOT_DIR}/ext/nrf")
7373
if(CONFIG_BOOT_USE_NRF_CC310_BL)
7474
set(NRFXLIB_DIR ${MCUBOOT_DIR}/../nrfxlib)
7575
assert_exists(NRFXLIB_DIR)
76-
# Don't include this if we are using west
77-
add_subdirectory(${NRFXLIB_DIR} ${PROJECT_BINARY_DIR}/nrfxlib)
7876
endif()
7977

8078
zephyr_library_include_directories(

boot/zephyr/Kconfig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ config BOOT_USE_NRF_CC310_BL
4747
bool
4848
default n
4949

50-
config NRFXLIB_CRYPTO
51-
bool
52-
default n
53-
54-
config NRF_CC310_BL
55-
bool
56-
default n
57-
5850
menu "MCUBoot settings"
5951

6052
choice
@@ -84,6 +76,7 @@ config BOOT_SIGNATURE_TYPE_ED25519
8476
if BOOT_SIGNATURE_TYPE_ECDSA_P256
8577
choice
8678
prompt "Ecdsa implementation"
79+
default BOOT_CC310 if HAS_HW_NRF_CC310
8780
default BOOT_TINYCRYPT
8881
config BOOT_TINYCRYPT
8982
bool "Use tinycrypt"

0 commit comments

Comments
 (0)