boards: riscv: tlsr9518adk80d: Move IMG_BLOCK_BUF_SIZE in Kconfig.defconfig

While build of samples or applications which does not contain
MCUBOOT_IMG_MANAGER option enabled, following warning occures:

warning: IMG_BLOCK_BUF_SIZE was assigned the value 256 but got
the value ``.

Because of that it decided to move IMG_BLOCK_BUF_SIZE config to
Kconfig.defconfig with additional condition if MCUBOOT_IMG_MANAGER

Signed-off-by: Alexandr Kolosov <rikorsev@gmail.com>
This commit is contained in:
Alexandr Kolosov 2022-07-06 16:47:56 +03:00 committed by Fabio Baltieri
commit 403b69085d
2 changed files with 7 additions and 6 deletions

View file

@ -58,4 +58,11 @@ DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
config FLASH_LOAD_OFFSET
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) if USE_DT_CODE_PARTITION
# Buffer for image writter shall be less(multiple of access alignment) or
# equal to flash page. tlsr9518adk80d boards use external P25Q16 IC as
# flesh memory. Flash page size of the IC is 256 bytes. So that, it is
# maximum image writer buffer size for such kind of boards.
config IMG_BLOCK_BUF_SIZE
default 256 if MCUBOOT_IMG_MANAGER
endif

View file

@ -16,9 +16,3 @@ CONFIG_UART_CONSOLE=y
# HW DSP options
CONFIG_TELINK_B91_HWDSP=n
# Buffer for image writter shall be less(multiple of access alignment) or
# equal to flash page. tlsr9518adk80d boards use external P25Q16 IC as
# flesh memory. Flash page size of the IC is 256 bytes. So that, it is
# maximum image writer buffer size for such kind of boards.
CONFIG_IMG_BLOCK_BUF_SIZE=256