diff Makefile.avr @ 20:59c7fcf10ea0

Copy the correct segments into the flash image otherwise pre-declared variables don't work.
author darius
date Mon, 12 Dec 2005 22:57:46 +1030
parents 108a703c39e6
children 2b8278ec5adb
line wrap: on
line diff
--- a/Makefile.avr	Mon Dec 12 15:42:03 2005 +1030
+++ b/Makefile.avr	Mon Dec 12 22:57:46 2005 +1030
@@ -38,7 +38,7 @@
 	${CC} ${CFLAGS} ${LDFLAGS} -g ${OBJS} -o ${PROG}.elf ${LDADD}
 
 .elf.hex:
-	${OBJCOPY} -j .text -O ihex $> $@
+	${OBJCOPY} -j .text -j .data -j .bss -j .noinit -O ihex $> $@
 
 .elf.dmp:
 	${OBJDUMP} -S ${.IMPSRC} > ${.PREFIX}.dmp