summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-11-10 11:28:03 -0500
committerTom Rini <trini@konsulko.com>2019-11-12 11:08:00 -0500
commitcb6617a77f81df47b72cc4115faf7bd5b1f7cfeb (patch)
tree3ae4fc88f4ea4de3f78de75bb60e5d761eb9e6cb /env
parent38d5fa48f42f9ad82f77038a501cb8d0e900ea2c (diff)
downloadu-boot-cb6617a77f81df47b72cc4115faf7bd5b1f7cfeb.tar.gz
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/Kconfig18
1 files changed, 11 insertions, 7 deletions
diff --git a/env/Kconfig b/env/Kconfig
index bc03816bc8..090cc795f9 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