Avoid redefinition of the CONFIG_ENV_OFFSET symbol, in case the board
specific config already set it. This allows board configurations to move
the U-Boot environment to a custom offset.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
# endif
# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
-# define CONFIG_ENV_OFFSET 0xE0000
+# ifndef CONFIG_ENV_OFFSET
+# define CONFIG_ENV_OFFSET 0xE0000
+# endif
# define CONFIG_CMD_SAVEENV /* Command to save ENV to Flash */
#endif