1#-------------------------------------------------------------------------------
2# Copyright (c) 2023, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8menuconfig TFM_PARTITION_FIRMWARE_UPDATE
9    bool "Firmware update"
10    depends on TFM_PARTITION_PLATFORM && TFM_PARTITION_CRYPTO && PLATFORM_HAS_FIRMWARE_UPDATE_SUPPORT
11    default n
12
13if TFM_PARTITION_FIRMWARE_UPDATE
14
15config TFM_FWU_BOOTLOADER_LIB
16    string "Bootloader configure file"
17    default "mcuboot"
18    help
19      Bootloader configure file for Firmware Update partition
20
21config TFM_CONFIG_FWU_MAX_WRITE_SIZE
22    int "Max block size (byte) in psa_fwu_write"
23    default 1024
24
25config TFM_CONFIG_FWU_MAX_MANIFEST_SIZE
26    int "Max size (byte) for manifest in psa_fwu_start"
27    default 0
28
29config FWU_DEVICE_CONFIG_FILE
30    string "The device configuration file for Firmware Update partition"
31    default ""
32
33config FWU_SUPPORT_TRIAL_STATE
34    bool
35    default n
36    help
37      Device support TRIAL component state.
38
39endif
40