zephyr/subsys/fs/nvs/Kconfig
Anas Nashif cffe98d9de crc: Make the build of crc function dependent on a Kconfig
Add CONFIG_CRC for building CRC related routines.
CRC routines are now being built for each application, whether used or
not and are add in the build system unconditionally.

Keep CONFIG_CRC enabled by default for now and until all users have
converted to use the new option.

Partial fix for #50654

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-11-23 13:30:00 +01:00

35 lines
836 B
Plaintext

# Non-volatile Storage NVS
# Copyright (c) 2018 Laczen
# SPDX-License-Identifier: Apache-2.0
config NVS
bool "Non-volatile Storage"
select CRC
help
Enable support of Non-volatile Storage.
if NVS
config NVS_LOOKUP_CACHE
bool "Non-volatile Storage lookup cache"
help
Enable Non-volatile Storage cache, used to reduce the NVS data lookup
time. Each cache entry holds an address of the most recent allocation
table entry (ATE) for all NVS IDs that fall into that cache position.
config NVS_LOOKUP_CACHE_SIZE
int "Non-volatile Storage lookup cache size"
default 128
range 1 65536
depends on NVS_LOOKUP_CACHE
help
Number of entries in Non-volatile Storage lookup cache.
It is recommended that it be a power of 2.
module = NVS
module-str = nvs
source "subsys/logging/Kconfig.template.log_config"
endif # NVS