Commit 24d1be07 authored by Sergey Koziakov's avatar Sergey Koziakov Committed by David Brown
Browse files

zephyr: restore device tree overlay

0e3fa72d removed device tree overlay
that is required to flash mcuboot to correct partition and CMake
variable that pointed to it. Restore it.

Do not restore adding "boards/${BOARD}.overlay" to the list since Zephyr
detects this file automatically now - see https://docs.zephyrproject.org/latest/application/index.html#devicetree-overlays

Signed-off-by: default avatarSergey Koziakov <dya.eshshmai@gmail.com>
parent a0cb24b8
Loading
Loading
Loading
Loading
+13 −0
Changes for boot/zephyr/CMakeLists.txt: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,19 @@

cmake_minimum_required(VERSION 3.13.1)

# Add a common dts overlay necessary to ensure mcuboot is linked into,
# and fits inside, the boot partition. (If the user specified a
# DTC_OVERLAY_FILE on the CMake command line, we need to append onto
# the list).
if(DTC_OVERLAY_FILE)
  set(DTC_OVERLAY_FILE
    "${DTC_OVERLAY_FILE} ${CMAKE_CURRENT_LIST_DIR}/dts.overlay"
    CACHE STRING "" FORCE
    )
else()
  set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/dts.overlay)
endif()

# Enable Zephyr runner options which request mass erase if so
# configured.
#
+5 −0
Changes for boot/zephyr/dts.overlay: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
/ {
	chosen {
		zephyr,code-partition = &boot_partition;
	};
};