Commit 58b321a8 authored by Marti Bolivar's avatar Marti Bolivar Committed by Fabio Utzig
Browse files

zephyr: CMakeLists: allow users to specify DTC_OVERLAY_FILE fragments

Allow the user to add additional device tree overlays onto the default
one that sets up the code partition.

Signed-off-by: default avatarMarti Bolivar <marti@opensourcefoundries.com>
parent 57837b98
Loading
Loading
Loading
Loading
+9 −2
Changes for boot/zephyr/CMakeLists.txt: 9 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -133,9 +133,16 @@ if (NOT DEFINED BOARD)
  set(BOARD qemu_x86)
endif()

# This is necessary to ensure mcuboot is linked into, and fits inside,
# the boot partition.
# 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")
else()
  set(DTC_OVERLAY_FILE ${CMAKE_CURRENT_LIST_DIR}/dts.overlay)
endif()

# Enable Zephyr runner options which request mass erase if so
# configured.