Skip to content

Commit

Permalink
[nrf noup] 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]>
Signed-off-by: Marti Bolivar <[email protected]>
(cherry picked from commit 73d4cd1)
(cherry picked from commit 2dbfddd)
Signed-off-by: Martí Bolívar <[email protected]>
  • Loading branch information
sigvartmh authored and mbolivar-nordic committed Oct 24, 2019
1 parent 0e7f543 commit 65b76e3
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 @@ -73,8 +73,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 @@ -47,14 +47,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 Down Expand Up @@ -84,6 +76,7 @@ config BOOT_SIGNATURE_TYPE_ED25519
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 65b76e3

Please sign in to comment.