From: Robin Getz Date: Fri, 10 Jul 2009 18:37:15 +0000 (+0000) Subject: Blackfin: use +(filesize) to make sure we are only doing what is necessary X-Git-Tag: v2009.11-rc1~224 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=69c6d268a29cf6d61e096d815abf5abf24136f45;p=u-boot Blackfin: use +(filesize) to make sure we are only doing what is necessary Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h index 1ca2e51420..ceb130c813 100644 --- a/include/configs/bfin_adi_common.h +++ b/include/configs/bfin_adi_common.h @@ -160,8 +160,8 @@ "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 \