Skip to content

Commit

Permalink
[nrf fromlist] zephyr: Remove duplication from Kconfig and cmake
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
sigvartmh authored and nvlsianpu committed Mar 29, 2019
1 parent 936c7a5 commit 73d4cd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions boot/zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ set(NRF_DIR "${MCUBOOT_DIR}/ext/nrf")
if(CONFIG_BOOT_USE_NRF_CC310_BL)
set(NRFXLIB_DIR ${MCUBOOT_DIR}/../nrfxlib)
assert_exists(NRFXLIB_DIR)
# Don't include this if we are using west
add_subdirectory(${NRFXLIB_DIR} ${PROJECT_BINARY_DIR}/nrfxlib)
endif()

zephyr_library_include_directories(
Expand Down
9 changes: 1 addition & 8 deletions boot/zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ config BOOT_USE_NRF_CC310_BL
bool
default n

config NRFXLIB_CRYPTO
bool
default n

config NRF_CC310_BL
bool
default n

menu "MCUBoot settings"

choice
Expand All @@ -84,6 +76,7 @@ config BOOT_SIGNATURE_TYPE_ECDSA_P256
if BOOT_SIGNATURE_TYPE_ECDSA_P256
choice
prompt "Ecdsa implementation"
default BOOT_CC310 if HAS_HW_NRF_CC310
default BOOT_TINYCRYPT
config BOOT_TINYCRYPT
bool "Use tinycrypt"
Expand Down

0 comments on commit 73d4cd1

Please sign in to comment.