Convert CONFIG_ENV_MIN_ENTRIES et al to Kconfig

This converts the following to Kconfig:
   CONFIG_ENV_MIN_ENTRIES
   CONFIG_ENV_MAX_ENTRIES

Cc: Michal Simek <michal.simek@amd.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2022-06-12 20:01:58 -04:00
parent 910feb50d4
commit 82e0b51ccb
8 changed files with 18 additions and 24 deletions

16
env/Kconfig vendored
View File

@@ -30,6 +30,22 @@ config ENV_OVERWRITE
Use this to permit overriding of certain environmental variables
like Ethernet and Serial
config ENV_MIN_ENTRIES
int "Minimum number of entries in the environment hashtable"
default 64
help
Minimum number of entries in the hash table that is used internally
to store the environment settings.
config ENV_MAX_ENTRIES
int "Maximumm number of entries in the environment hashtable"
default 512
help
Maximum number of entries in the hash table that is used internally
to store the environment settings. The default setting is supposed to
be generous and should work in most cases. This setting can be used
to tune behaviour; see lib/hashtable.c for details.
config ENV_IS_NOWHERE
bool "Environment is not stored"
default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \