All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT
@ 2021-01-13 12:26 Michal Simek
  2021-01-13 14:02 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Simek @ 2021-01-13 12:26 UTC (permalink / raw)
  To: u-boot

CONFIG_SYS_REDUNDAND_ENVIRONMENT is changing in env_internal.h how u-boot
works with variables. struct environment_s has one byte flags property
which also affects ENV_SIZE macro.

I have reached the case where CONFIG_ENV_IS_NOWHERE is default setup
but custom scripts can be designed in a way that u-boot is asked to
import/export variables from/to file which can be in certain format.
That's why also for this configuration make sense to enable
CONFIG_SYS_REDUNDAND_ENVIRONMENT because it depends on environment file
format.

The patch is removing dependency on this configuration to support selecting
environment file format without any specific dependency where variables are
stored.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 env/Kconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/env/Kconfig b/env/Kconfig
index 67ce93061b7d..356d8a0605b4 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -411,8 +411,6 @@ config ENV_IS_IN_UBI
 
 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
-- 
2.30.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-14 19:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 12:26 [PATCH] env: Remove all dependencies for SYS_REDUNDAND_ENVIRONMENT Michal Simek
2021-01-13 14:02 ` Tom Rini
2021-01-13 14:24   ` Michal Simek
2021-01-13 14:43     ` Tom Rini
2021-01-13 14:50       ` Michal Simek
2021-01-14 19:42         ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.