Commit 7024340b authored by Andrzej Puzdrowski's avatar Andrzej Puzdrowski Committed by David Brown
Browse files

zephyr: Change DT_FLASH_AREA_ macros to FLASH_AREA for multimage

Use the new FLASH_AREA_ macros.

Signed-off-by: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent 6e26e385
Loading
Loading
Loading
Loading
+2 −4
Changes for boot/zephyr/include/target.h: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -42,10 +42,8 @@
#error "Target support is incomplete; cannot build mcuboot."
#endif

#if ((MCUBOOT_IMAGE_NUMBER == 2) && (!defined(FLASH_AREA_IMAGE_2_OFFSET) || \
                                     !defined(FLASH_AREA_IMAGE_2_SIZE)   || \
                                     !defined(FLASH_AREA_IMAGE_3_OFFSET) || \
                                     !defined(FLASH_AREA_IMAGE_3_SIZE)))
#if (MCUBOOT_IMAGE_NUMBER == 2) && (!(FLASH_AREA_LABEL_EXISTS(image_2)) || \
                                     !(FLASH_AREA_LABEL_EXISTS(image_3)))
#error "Target support is incomplete; cannot build mcuboot."
#endif