diff --git a/examples/lighting-app/nrfconnect/CMakeLists.txt b/examples/lighting-app/nrfconnect/CMakeLists.txt index 9dedf16671c460..1931b7c950d2fd 100644 --- a/examples/lighting-app/nrfconnect/CMakeLists.txt +++ b/examples/lighting-app/nrfconnect/CMakeLists.txt @@ -40,7 +40,7 @@ if(NOT BUILD_WITH_DFU STREQUAL "OFF") if(BUILD_WITH_DFU STREQUAL "BLE") if(BOARD STREQUAL "nrf5340dk_nrf5340_cpuapp") list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-multi_image_smp_dfu_support.conf) - elseif(BOARD STREQUAL "nrf52840dk_nrf52840") + else() list(INSERT OVERLAY_CONFIG 0 ${CHIP_ROOT}/config/nrfconnect/app/overlay-single_image_smp_dfu_support.conf) endif() elseif(NOT BUILD_WITH_DFU STREQUAL "MATTER") @@ -54,10 +54,8 @@ if(NOT BUILD_WITH_DFU STREQUAL "OFF") if(BOARD STREQUAL "nrf5340dk_nrf5340_cpuapp") # DFU over Matter doesn't support multi-image update yet, but using this configs should not harm it anyway. set(mcuboot_OVERLAY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/configuration/mcuboot_multi_image_dfu.conf CACHE INTERNAL "") - elseif(BOARD STREQUAL "nrf52840dk_nrf52840") - set(mcuboot_OVERLAY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/configuration/mcuboot_single_image_dfu.conf CACHE INTERNAL "") else() - message(FATAL_ERROR "Selected board ${BOARD} does not support DFU feature.") + set(mcuboot_OVERLAY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/configuration/mcuboot_single_image_dfu.conf CACHE INTERNAL "") endif() set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/configuration/${BOARD}/pm_static.yml)