mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -58,21 +58,12 @@
|
||||
(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
|
||||
# define ENV_IS_EMBEDDED
|
||||
# endif
|
||||
# if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
|
||||
# define CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
# endif
|
||||
# ifdef CONFIG_ENV_IS_EMBEDDED
|
||||
# error "do not define CONFIG_ENV_IS_EMBEDDED in your board config"
|
||||
# error "it is calculated automatically for you"
|
||||
# endif
|
||||
#endif /* CONFIG_ENV_IS_IN_FLASH */
|
||||
|
||||
#if defined(CONFIG_ENV_IS_IN_MMC)
|
||||
# ifdef CONFIG_ENV_OFFSET_REDUND
|
||||
# define CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ENV_IS_IN_NAND)
|
||||
# if defined(CONFIG_ENV_OFFSET_OOB)
|
||||
# ifdef CONFIG_ENV_OFFSET_REDUND
|
||||
@@ -85,9 +76,6 @@ extern unsigned long nand_env_oob_offset;
|
||||
# ifndef CONFIG_ENV_OFFSET
|
||||
# error "Need to define CONFIG_ENV_OFFSET when using CONFIG_ENV_IS_IN_NAND"
|
||||
# endif
|
||||
# ifdef CONFIG_ENV_OFFSET_REDUND
|
||||
# define CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
# endif
|
||||
# endif /* CONFIG_ENV_OFFSET_OOB */
|
||||
# ifndef CONFIG_ENV_SIZE
|
||||
# error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_NAND"
|
||||
@@ -101,9 +89,6 @@ extern unsigned long nand_env_oob_offset;
|
||||
# ifndef CONFIG_ENV_UBI_VOLUME
|
||||
# error "Need to define CONFIG_ENV_UBI_VOLUME when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
# if defined(CONFIG_ENV_UBI_IS_VOLUME_REDUND)
|
||||
# define CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
# endif
|
||||
# ifndef CONFIG_ENV_SIZE
|
||||
# error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_UBI"
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user