]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: use +(filesize) to make sure we are only doing what is necessary
authorRobin Getz <robin.getz@analog.com>
Fri, 10 Jul 2009 18:37:15 +0000 (18:37 +0000)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:05 +0000 (09:04 -0500)
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/configs/bfin_adi_common.h

index 1ca2e514205fa365c9ccc8ba63f4488f999aa97e..ceb130c813de4dc7c21464f67b6b4a1f18b68b12 100644 (file)
                "nand write $(loadaddr) 0 0x40000"
 # else
 #  define UBOOT_ENV_UPDATE \
-               "protect off 0x20000000 0x2003FFFF;" \
-               "erase 0x20000000 0x2003FFFF;" \
+               "protect off 0x20000000 +$(filesize);" \
+               "erase 0x20000000 +$(filesize);" \
                "cp.b $(loadaddr) 0x20000000 $(filesize)"
 # endif
 # define NETWORK_ENV_SETTINGS \