[U-Boot] [PATCH] This modification will make the binay of smdk6400 nand spl in correct size

sun peng sunnycamel at gmail.com
Tue Sep 22 09:02:58 CEST 2009


When I'm playing with u-boot I found that the size of smdk6400 nand
spl binary image can't pad to 4K. So I make some minor change to the
config.mk file to achieve the correct padding size.

Signed-off-by: Sunpeng <sunnycamel at gmail.com>
---
 nand_spl/board/samsung/smdk6400/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nand_spl/board/samsung/smdk6400/config.mk
b/nand_spl/board/samsung/smdk6400/config.mk
index 4b16230..013dec9 100644
--- a/nand_spl/board/samsung/smdk6400/config.mk
+++ b/nand_spl/board/samsung/smdk6400/config.mk
@@ -33,7 +33,7 @@ include $(TOPDIR)/board/$(BOARDDIR)/config.mk

 # PAD_TO used to generate a 4kByte binary needed for the combined image
 # -> PAD_TO = TEXT_BASE + 4096
-PAD_TO	:= $(shell expr $$[$(TEXT_BASE) + 4096])
+PAD_TO	:= $(shell expr $(TEXT_BASE) + 4096)

 ifeq ($(debug),1)
 PLATFORM_CPPFLAGS += -DDEBUG
-- 
1.6.0.4


More information about the U-Boot mailing list