2022-02-01 22:33:35 +01:00
|
|
|
# Copyright (c) 2022 ML!PA Consulting GmbH
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig KCONFIG_USEPKG_FLASHDB
|
|
|
|
bool "Configure FlashDB"
|
|
|
|
help
|
|
|
|
Configure FlashDB using Kconfig
|
|
|
|
|
|
|
|
if KCONFIG_USEPKG_FLASHDB
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_MTD
|
|
|
|
bool "Use MTD backend"
|
|
|
|
select MODULE_MTD
|
|
|
|
select MODULE_FLASHDB_FAL
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_VFS
|
|
|
|
bool "Use VFS backend"
|
|
|
|
select MODULE_VFS
|
|
|
|
select MODULE_FLASHDB_FAL
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_FAL
|
|
|
|
bool "FlashDB flash abstraction layer"
|
|
|
|
depends on MODULE_FLASHDB_MTD
|
|
|
|
default y
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_TSDB
|
|
|
|
bool "FlashDB Time Series Database"
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_KVDB
|
|
|
|
bool "FlashDB Key-Value Database"
|
|
|
|
|
|
|
|
config MODULE_FLASHDB_KVDB_AUTO_UPDATE
|
|
|
|
bool "Enable Key-Value automatic upgrade function"
|
|
|
|
depends on MODULE_FLASHDB_KVDB
|
|
|
|
help
|
|
|
|
When this function is enabled, fdb_kvdb.ver_num stores the version of the current
|
|
|
|
database. If the version changes, it will automatically trigger an upgrade action
|
|
|
|
and update the new default KV collection to the current database.
|
|
|
|
|
2024-01-02 23:51:21 +01:00
|
|
|
config FLASHDB_MIN_SECTOR_SIZE_DEFAULT_KiB
|
|
|
|
int "Minimal virtual sector size in KiB for FlashDB"
|
|
|
|
default 4
|
|
|
|
help
|
|
|
|
By default, KVDB will use 1 times the block size as the sector size, that is, 4096.
|
|
|
|
At this time, the KVDB cannot store a KV longer than 4096. If you want to save, for example,
|
|
|
|
a KV with a length of 10K, you can use the control function to set the sector size to 12K or
|
|
|
|
larger.
|
|
|
|
|
2022-02-01 22:33:35 +01:00
|
|
|
config MODULE_FLASHDB_MTD
|
|
|
|
|
|
|
|
endif # PACKAGE_FLASHDB
|