From c8581264d5e3b4ba5a7ef3179c7cda16819ed088 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Thu, 5 Feb 2009 11:19:49 +0000 Subject: [PATCH] MINI2440: Added a rule to make a block aligned binary Need a 512 byte aligned binary to flash directly on nand --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 09c9be48..2db8d937 100644 --- a/Makefile +++ b/Makefile @@ -281,6 +281,7 @@ ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BO ifeq ($(ARCH),blackfin) ALL += $(obj)u-boot.ldr endif +ALL += $(obj)u-boot-nand512.bin all: $(ALL) @@ -327,6 +328,10 @@ $(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \ -Map u-boot.map -o u-boot +# make a file that can be written using "nand write ..." on 512 block NAND +$(obj)u-boot-nand512.bin: $(obj)u-boot.bin + dd if=$< of=$@ bs=512 conv=sync + $(OBJS): depend $(obj)include/autoconf.mk $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@)) -- 2.11.4.GIT