]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_embedded.c
YAFFS2: cmd_yaffs2.c - fix build warnings
[karo-tx-uboot.git] / common / env_embedded.c
index e27e1cd276c3c4fc5717b78444052f4225066f31..e438575d448ba26bdf966a73690edce7025cc4be 100644 (file)
 #  define SYM_CHAR
 #endif
 
+/*
+ * Generate embedded environment table
+ * inside U-Boot image, if needed.
+ */
+#if defined(ENV_IS_EMBEDDED) || defined(CONFIG_BUILD_ENVCRC)
 /*
  * Only put the environment in it's own section when we are building
  * U-Boot proper.  The host based program "tools/envcrc" does not need
@@ -205,3 +210,5 @@ unsigned long env_size __PPCTEXT__ = sizeof(env_t);
  * Add in absolutes.
  */
 GEN_ABS(env_offset, CONFIG_ENV_OFFSET);
+
+#endif /* ENV_IS_EMBEDDED */