diff options
author | Tom Rini | 2019-11-10 11:28:03 -0500 |
---|---|---|
committer | Tom Rini | 2019-11-12 11:08:00 -0500 |
commit | cb6617a77f81df47b72cc4115faf7bd5b1f7cfeb (patch) | |
tree | 3ae4fc88f4ea4de3f78de75bb60e5d761eb9e6cb /env | |
parent | 38d5fa48f42f9ad82f77038a501cb8d0e900ea2c (diff) |
defconfigs: Migrate CONFIG_SYS_REDUNDAND_ENVIRONMENT
Move this symbol to Kconfig. As part of this we can drop a UBI-specific
symbol that was a stop-gap for not having this particular symbol in
Kconfig.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env')
-rw-r--r-- | env/Kconfig | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/env/Kconfig b/env/Kconfig index bc03816bc8b..090cc795f91 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -393,6 +393,16 @@ config ENV_IS_IN_UBI the environment in. This will enable redundant environments in UBI. It is assumed that both volumes are in the same MTD partition. +config SYS_REDUNDAND_ENVIRONMENT + bool "Enable redundant environment support" + depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \ + ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI + help + Normally, the environemt is stored in a single location. By + selecting this option, you can then define where to hold a redundant + copy of the environment data, so that there is a valid backup copy in + case there is a power failure during a "saveenv" operation. + config ENV_FAT_INTERFACE string "Name of the block device for the environment" depends on ENV_IS_IN_FAT @@ -512,16 +522,10 @@ config ENV_UBI_VOLUME config ENV_UBI_VOLUME_REDUND string "UBI redundant volume name" - depends on ENV_IS_IN_UBI + depends on ENV_IS_IN_UBI && SYS_REDUNDAND_ENVIRONMENT help Name of the redundant volume that you want to store the environment in. -config ENV_UBI_IS_VOLUME_REDUND - bool - depends on ENV_IS_IN_UBI - default y if ENV_UBI_VOLUME_REDUND != "" - default n - config ENV_UBI_VID_OFFSET int "ubi environment VID offset" depends on ENV_IS_IN_UBI |