]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq_common: Allow boards to override env offset
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 29 Oct 2013 20:10:40 +0000 (13:10 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 30 Oct 2013 14:36:47 +0000 (15:36 +0100)
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>
include/configs/zynq_common.h

index e20961be501d7d4b0ecf3e10dd59e9335e7a5ce9..5bc67094c6281db70ec31c2a6c3bf2c408860ab0 100644 (file)
 # 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