comparison nuc-fw/finlink/Makefile @ 81:147861b15cda

nuc-fw: ramImage.srec built, nucdemo runs
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 16 Aug 2013 20:14:01 +0000
parents 39b1c369b67f
children f459043fae0c
comparison
equal deleted inserted replaced
80:39b1c369b67f 81:147861b15cda
1 CC= arm-elf-gcc 1 CC= arm-elf-gcc
2 LD= arm-elf-ld 2 LD= arm-elf-ld
3 OBJCOPY=arm-elf-objcopy 3 OBJCOPY=arm-elf-objcopy
4 4
5 RAM_TARGET= ramImage.elf 5 RAM_TARGET= ramImage.srec
6 6
7 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` 7 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork`
8 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` 8 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb`
9 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork` 9 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork`
10 LIBGCC_T= `${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb` 10 LIBGCC_T= `${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb`
27 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} xram.lds 27 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} xram.lds
28 ${LD} -N -T xram.lds -o $@ -Map ramImage.map iramcode.o xipcode.o \ 28 ${LD} -N -T xram.lds -o $@ -Map ramImage.map iramcode.o xipcode.o \
29 --start-group ${LOCAL_LIBS} --end-group \ 29 --start-group ${LOCAL_LIBS} --end-group \
30 --start-group ${LIBC_A} ${LIBGCC_A} --end-group 30 --start-group ${LIBC_A} ${LIBGCC_A} --end-group
31 31
32 ramImage.srec: ramImage.elf
33 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
34
32 clean: 35 clean:
33 rm -f *.o *errs *core *.elf *.bin *.srec 36 rm -f *.o *errs *core *.elf *.bin *.srec
34 37
35 FRC: 38 FRC: