summaryrefslogtreecommitdiff
path: root/include/environment.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-05-15 09:38:16 +0800
committerAndy Fleming <afleming@freescale.com>2013-06-13 16:44:49 -0500
commit5707df7796f3d2791bdfaa29e682b1d3cc33f90e (patch)
tree8147c3c9bddd2ad37043db5571e7634d3a6ce7be /include/environment.h
parent077becc345717c3cf32e88316298b74d0cff6581 (diff)
downloadu-boot-imx-5707df7796f3d2791bdfaa29e682b1d3cc33f90e.zip
u-boot-imx-5707df7796f3d2791bdfaa29e682b1d3cc33f90e.tar.gz
u-boot-imx-5707df7796f3d2791bdfaa29e682b1d3cc33f90e.tar.bz2
mmc: fix env in mmc with redundant compile error
The commit d196bd8 (env_mmc: add support for redundant environment) introduce the following compile error when enable redundant environment support with MMC ---8<--- env_mmc.c:149: error: 'env_t' has no member named 'flags' env_mmc.c:248: error: 'env_t' has no member named 'flags' env_mmc.c:248: error: 'env_t' has no member named 'flags' env_mmc.c:250: error: 'env_t' has no member named 'flags' env_mmc.c:250: error: 'env_t' has no member named 'flags' env_mmc.c:252: error: 'env_t' has no member named 'flags' env_mmc.c:252: error: 'env_t' has no member named 'flags' env_mmc.c:254: error: 'env_t' has no member named 'flags' env_mmc.c:254: error: 'env_t' has no member named 'flags' env_mmc.c:267: error: 'env_t' has no member named 'flags' make[1]: *** [env_mmc.o] Error 1 --->8--- Add this patch to fix it Signed-off-by: Bo Shen <voice.shen@atmel.com> Reviewed-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h
index 4c6a37b..460ccb4 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -75,6 +75,12 @@
# 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