comparison nuc-fw/finlink/Makefile @ 92:f459043fae0c

nuc-fw config: ld script generation implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 25 Aug 2013 21:20:20 +0000
parents 147861b15cda
children 789a9a95533f
comparison
equal deleted inserted replaced
91:3641e44f044e 92:f459043fae0c
22 ${LD} -r -o $@ ${INT_PIECES} 22 ${LD} -r -o $@ ${INT_PIECES}
23 23
24 xipcode.o: ${EXT_PIECES} 24 xipcode.o: ${EXT_PIECES}
25 ${LD} -r -o $@ ${EXT_PIECES} 25 ${LD} -r -o $@ ${EXT_PIECES}
26 26
27 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} xram.lds 27 flashImage.ld: ld-script.src flash.m4 ../include/config.m4
28 ${LD} -N -T xram.lds -o $@ -Map ramImage.map iramcode.o xipcode.o \ 28 m4 flash.m4 ld-script.src > $@
29
30 ramImage.ld: ld-script.src xram.m4 ../include/config.m4
31 m4 xram.m4 ld-script.src > $@
32
33 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld
34 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \
29 --start-group ${LOCAL_LIBS} --end-group \ 35 --start-group ${LOCAL_LIBS} --end-group \
30 --start-group ${LIBC_A} ${LIBGCC_A} --end-group 36 --start-group ${LIBC_A} ${LIBGCC_A} --end-group
31 37
32 ramImage.srec: ramImage.elf 38 ramImage.srec: ramImage.elf
33 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 39 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
34 40
35 clean: 41 clean:
36 rm -f *.o *errs *core *.elf *.bin *.srec 42 rm -f *.o *errs *core *.elf *.bin *.srec *.ld *.map
37 43
38 FRC: 44 FRC: