62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
# Flash map abstraction module
|
|
|
|
# Copyright (c) 2017 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
# Flash map
|
|
#
|
|
|
|
menuconfig FLASH_MAP
|
|
bool "Flash map abstraction module"
|
|
depends on FLASH_HAS_DRIVER_ENABLED
|
|
help
|
|
Enable support of flash map abstraction.
|
|
|
|
if FLASH_MAP
|
|
|
|
config FLASH_MAP_SHELL
|
|
bool "Flash map shell interface"
|
|
depends on SHELL
|
|
help
|
|
This enables shell commands to list and test flash maps.
|
|
|
|
config FLASH_MAP_CUSTOM
|
|
bool "Custom flash map description"
|
|
help
|
|
This option enables custom flash map description.
|
|
User must provide such a description in place of default on
|
|
if had enabled this option.
|
|
|
|
config FLASH_AREA_CHECK_INTEGRITY
|
|
bool "Flash check functions"
|
|
help
|
|
If enabled, there will be available the backend to check flash
|
|
integrity using SHA-256 verification algorithm.
|
|
|
|
if FLASH_AREA_CHECK_INTEGRITY
|
|
choice
|
|
prompt "Crypto backend for the flash check functions"
|
|
default FLASH_AREA_CHECK_INTEGRITY_TC
|
|
|
|
config FLASH_AREA_CHECK_INTEGRITY_TC
|
|
bool "Use TinyCrypt"
|
|
select TINYCRYPT
|
|
select TINYCRYPT_SHA256
|
|
help
|
|
Use TinyCrypt library to perform the integrity check.
|
|
|
|
config FLASH_AREA_CHECK_INTEGRITY_MBEDTLS
|
|
bool "Use MBEDTLS"
|
|
select MBEDTLS
|
|
select MBEDTLS_MD
|
|
select MBEDTLS_MAC_SHA256_ENABLED
|
|
select MBEDTLS_ENABLE_HEAP
|
|
help
|
|
Use MBEDTLS library to perform the integrity check.
|
|
|
|
endchoice
|
|
endif
|
|
|
|
endif
|