comparison nuc-fw/finlink/Makefile @ 128:789a9a95533f

nuc-fw: more minor preparations for the big transition
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 01 Nov 2013 01:31:39 +0000
parents f459043fae0c
children 2c5160a9d652
comparison
equal deleted inserted replaced
127:f4f0c8738dcb 128:789a9a95533f
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`
11 11
12 LOCAL_LIBS= ../nucleus/libplus.iram.a ../nucleus/libplus.xip.a \ 12 LOCAL_LIBS= ../sprintf/libsprintf.a \
13 ../sprintf/libsprintf.a 13 ../nucleus/libplus.xip.a ../nucleus/libplus.iram.a
14 14
15 INT_PIECES= ../sysglue/sysinit.o 15 INT_PIECES= ../sysglue/sysinit.o
16 EXT_PIECES= ../nucdemo/demo.o 16 EXT_PIECES= ../nucdemo/demo.o
17 17
18 all: ${RAM_TARGET} 18 all: ${RAM_TARGET}
30 ramImage.ld: ld-script.src xram.m4 ../include/config.m4 30 ramImage.ld: ld-script.src xram.m4 ../include/config.m4
31 m4 xram.m4 ld-script.src > $@ 31 m4 xram.m4 ld-script.src > $@
32 32
33 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld 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 \ 34 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \
35 --start-group ${LOCAL_LIBS} --end-group \ 35 ${LOCAL_LIBS} \
36 --start-group ${LIBC_A} ${LIBGCC_A} --end-group 36 --start-group ${LIBC_A} ${LIBGCC_A} --end-group
37 37
38 ramImage.srec: ramImage.elf 38 ramImage.srec: ramImage.elf
39 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 39 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
40 40