]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_common.c
applied patches from Freescale and Ka-Ro
[karo-tx-uboot.git] / common / env_common.c
index be64d1307b96441ba184e080263541d7860f7dd2..eb0b37446e9a352005e8fbd7d00f488ac0593730 100644 (file)
@@ -139,6 +139,12 @@ uchar default_environment[] = {
        "\0"
 };
 
+#if defined(CONFIG_ENV_IS_IN_NAND)             /* Environment is in Nand Flash */ \
+       || defined(CONFIG_ENV_IS_IN_SPI_FLASH) \
+       || defined(CONFIG_ENV_IS_IN_MMC)
+int default_environment_size = sizeof(default_environment);
+#endif
+
 void env_crc_update (void)
 {
        env_ptr->crc = crc32(0, env_ptr->data, ENV_SIZE);