zephyr/subsys/storage/flash_map/Kconfig
Andrzej Puzdrowski 80a99fa450 subsys: storage: flash_map: enable only if any flash driver is enable
It was possible to have enable flash module while no flash driver
implementation was enabled. This cause coverity issues and unnecessary
initialization call.

This pat introduce FLASH_HAS_DRIVER_ENABLED Kconfig keyword which is
selected once any flash driver is enabled. flash_map switch its
dependency to this keyword.


Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2018-03-08 10:18:57 +01:00

29 lines
569 B
Plaintext

# Kconfig - Flash map abstraction module
#
# Copyright (c) 2017 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
#
# Flash map
#
menuconfig FLASH_MAP
bool
prompt "Flash map abstraction module"
default n
depends on FLASH_HAS_DRIVER_ENABLED
help
Enable support of flash map abstraction.
config FLASH_MAP_CUSTOM
bool
prompt "Custom flash map description"
default n
depends on FLASH_MAP
help
This option enables custom flash map description.
User must provide such a description in place of default on
if had enabled this option.