Commit 38845488 authored by Marti Bolivar's avatar Marti Bolivar Committed by David Brown
Browse files

zephyr: fix MCUBOOT_TARGET_CONFIG definition

When the target doesn't have good enough generic support for MCUBoot,
you can specify the flash layout etc on a per-board basis by creating
a header, boot/zephyr/targets/BOARD.h.

The build system tries to pick this up, but isn't doing it
correctly. Fix it.

Signed-off-by: default avatarMarti Bolivar <marti@opensourcefoundries.com>
parent 8e0016eb
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/zephyr/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ endif()
target_include_directories(app PRIVATE include)
target_include_directories(app PRIVATE targets)
if(EXISTS "${APPLICATION_SOURCE_DIR}/targets/${BOARD}.h")
  target_compile_definitions(app PRIVATE "-DMCUBOOT_TARGET_CONFIG='\"${BOARD}.h\"'")
  target_compile_definitions(app PRIVATE "-DMCUBOOT_TARGET_CONFIG=\"${BOARD}.h\"")
endif()

# Zephyr port-specific sources.