[PATCH u-boot v2019.04-aspeed-openbmc] add kconfig for secondary env partition
Andrei Kartashev
a.kartashev at yadro.com
Wed Nov 24 04:44:46 AEDT 2021
Backport SYS_REDUNDAND_ENVIRONMENT and ENV_OFFSET_REDUND options from
upstream.
Fix indent for ENV_OFFSET and ENV_SIZE
Signed-off-by: Andrei Kartashev <a.kartashev at yadro.com>
---
env/Kconfig | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/env/Kconfig b/env/Kconfig
index c41478e362..07e161194a 100755
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -656,15 +656,28 @@ config TPL_ENV_IS_IN_FLASH
endif
config ENV_OFFSET
- hex "Environment offset"
- depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
- ENV_IS_IN_SPI_FLASH
- help
- Offset from the start of the device (or partition)
+ hex "Environment offset"
+ depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH
+ help
+ Offset from the start of the device (or partition)
config ENV_SIZE
- hex "Environment Size"
- help
- Size of the environment storage area
+ hex "Environment Size"
+ help
+ Size of the environment storage area
+
+config SYS_REDUNDAND_ENVIRONMENT
+ bool "Use secondary environment partition"
+ depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH
+ help
+ Used to hold a redundant copy of the environment data. This
+ provides a valid backup copy in case the other copy is corrupted,
+ e.g. due to a power failure during a "saveenv" operation.
+
+config ENV_OFFSET_REDUND
+ hex "Secondary environment offset"
+ depends on SYS_REDUNDAND_ENVIRONMENT
+ help
+ Size of the environment storage area
endmenu
--
2.32.0
More information about the openbmc
mailing list