]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_embedded.c
ppc/85xx: Fix inclusion of 83xx immap in 85xx builds
[karo-tx-uboot.git] / common / env_embedded.c
index e27e1cd276c3c4fc5717b78444052f4225066f31..ae6cac4390d8ad60f3551b0a5173d67fce14c5e4 100644 (file)
 #  define SYM_CHAR
 #endif
 
+/*
+ * Generate embedded environment table
+ * inside U-Boot image, if needed.
+ */
+#if defined(ENV_IS_EMBEDDED)
 /*
  * 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 */