dfu: include MCUboot's bootutil_public.h

This header provides original BOOT_MAX_ALIGN definition.
This definition is used directly on indirectly by the code this
patch modifies.
Let's use it instead of copy from mcuboot.h

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
This commit is contained in:
Andrzej Puzdrowski 2022-09-19 14:48:54 +02:00 committed by Carles Cufí
commit 1e7b120606
6 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(CONFIG_MCUBOOT_IMG_MANAGER flash_img.c)
zephyr_library_link_libraries(MCUBOOT_BOOTUTIL)

View file

@ -14,6 +14,7 @@
#include <zephyr/storage/stream_flash.h>
#ifdef CONFIG_IMG_ERASE_PROGRESSIVELY
#include <bootutil/bootutil_public.h>
#include <zephyr/dfu/mcuboot.h>
#endif