2019-11-01 13:45:29 +01:00
|
|
|
# Flash map abstraction module
|
|
|
|
|
2017-12-08 11:50:46 +01:00
|
|
|
# Copyright (c) 2017 Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# Flash map
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig FLASH_MAP
|
2018-07-12 13:26:29 +02:00
|
|
|
bool "Flash map abstraction module"
|
2018-03-07 14:31:56 +01:00
|
|
|
depends on FLASH_HAS_DRIVER_ENABLED
|
2017-12-08 11:50:46 +01:00
|
|
|
help
|
|
|
|
Enable support of flash map abstraction.
|
|
|
|
|
2019-02-10 17:45:38 +01:00
|
|
|
if FLASH_MAP
|
|
|
|
|
|
|
|
config FLASH_MAP_SHELL
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Flash map shell interface"
|
2019-02-10 17:45:38 +01:00
|
|
|
depends on SHELL
|
2023-04-06 11:15:29 +02:00
|
|
|
imply FLASH_MAP_LABELS
|
2019-02-10 17:45:38 +01:00
|
|
|
help
|
|
|
|
This enables shell commands to list and test flash maps.
|
|
|
|
|
2017-12-08 11:50:46 +01:00
|
|
|
config FLASH_MAP_CUSTOM
|
2018-07-12 13:26:29 +02:00
|
|
|
bool "Custom flash map description"
|
2017-12-08 11:50:46 +01:00
|
|
|
help
|
|
|
|
This option enables custom flash map description.
|
|
|
|
User must provide such a description in place of default on
|
|
|
|
if had enabled this option.
|
2019-02-10 17:45:38 +01:00
|
|
|
|
2020-08-19 02:53:34 +02:00
|
|
|
config FLASH_AREA_CHECK_INTEGRITY
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "Flash check functions"
|
2020-08-19 02:53:34 +02:00
|
|
|
help
|
|
|
|
If enabled, there will be available the backend to check flash
|
|
|
|
integrity using SHA-256 verification algorithm.
|
|
|
|
|
2023-04-06 11:15:29 +02:00
|
|
|
config FLASH_MAP_LABELS
|
|
|
|
bool "Access flash area labels at runtime"
|
|
|
|
help
|
|
|
|
If enabled the label property of the flash map can be retrieved
|
|
|
|
at runtime. The available labels will also be displayed in the
|
|
|
|
flash_map list shell command.
|
|
|
|
|
2021-10-02 06:52:03 +02:00
|
|
|
if FLASH_AREA_CHECK_INTEGRITY
|
2024-05-30 12:31:08 +02:00
|
|
|
|
2022-12-31 13:28:05 +01:00
|
|
|
choice FLASH_AREA_CHECK_INTEGRITY_BACKEND
|
2021-10-02 06:52:03 +02:00
|
|
|
prompt "Crypto backend for the flash check functions"
|
2024-05-30 12:31:08 +02:00
|
|
|
default FLASH_AREA_CHECK_INTEGRITY_PSA if BUILD_WITH_TFM
|
|
|
|
default FLASH_AREA_CHECK_INTEGRITY_MBEDTLS if !BUILD_WITH_TFM
|
2021-10-02 06:52:03 +02:00
|
|
|
|
2024-05-30 12:31:08 +02:00
|
|
|
config FLASH_AREA_CHECK_INTEGRITY_PSA
|
|
|
|
bool "Use PSA"
|
|
|
|
select PSA_WANT_ALG_SHA_256
|
2021-10-02 06:52:03 +02:00
|
|
|
help
|
2024-05-30 12:31:08 +02:00
|
|
|
Use the PSA API to perform the integrity check.
|
2021-10-02 06:52:03 +02:00
|
|
|
|
|
|
|
config FLASH_AREA_CHECK_INTEGRITY_MBEDTLS
|
2024-05-30 12:31:08 +02:00
|
|
|
bool "Use Mbed TLS"
|
2021-10-02 06:52:03 +02:00
|
|
|
select MBEDTLS
|
2024-05-24 14:09:02 +02:00
|
|
|
select MBEDTLS_SHA256
|
2021-10-02 06:52:03 +02:00
|
|
|
help
|
2024-05-30 12:31:08 +02:00
|
|
|
Use the Mbed TLS library to perform the integrity check.
|
2021-10-02 06:52:03 +02:00
|
|
|
|
|
|
|
endchoice
|
2024-05-30 12:31:08 +02:00
|
|
|
|
|
|
|
endif # FLASH_AREA_CHECK_INTEGRITY
|
2021-10-02 06:52:03 +02:00
|
|
|
|
2019-02-10 17:45:38 +01:00
|
|
|
endif
|