Small fix to m5282evb
authorAlan Carvalho de Assis <acassis@gmail.com>
Sat, 28 Mar 2009 22:50:16 +0000 (19:50 -0300)
committerWolfgang Denk <wd@denx.de>
Sat, 4 Apr 2009 20:47:01 +0000 (22:47 +0200)
This is just a small fix to get u-boot on m5282evb.

Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
board/freescale/m5282evb/u-boot.lds

index dc18b7d..f46e025 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
     lib_generic/vsprintf.o     (.text)
     lib_generic/crc32.o        (.text)
 
-    . = env_offset;
+    . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o(.text)
 
     *(.text)