[U-Boot] [PATCH] Remove gap fill in srec object

Ricardo Ribalda Delgado ricardo.ribalda at uam.es
Fri Aug 22 18:35:42 CEST 2008


Srec files do need gap fill: The load address is specified in the file.
On ppc, a common object consist on u-boot on the begining of the memory
and a jump and tlb setup on the last part of the memory (0xfffffffe).

If the gap is included, u-boot can produce a 4 Gigabyte object!, with no
more info that the srec.

On the other hand, it cant be avoided in the .bin object. It has no
information about memory location.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at uam.es>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 8c90dab..f02ab65 100644
--- a/Makefile
+++ b/Makefile
@@ -290,7 +290,7 @@ $(obj)u-boot.hex:	$(obj)u-boot
 		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
 
 $(obj)u-boot.srec:	$(obj)u-boot
-		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
+		$(OBJCOPY) -O srec $< $@
 
 $(obj)u-boot.bin:	$(obj)u-boot
 		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
-- 
1.5.6.3



More information about the U-Boot mailing list