FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/finlink/Makefile @ 633:da72b51c0572
gsm-fw/finlink: flashImage support added
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> | 
|---|---|
| date | Mon, 01 Sep 2014 18:20:58 +0000 | 
| parents | 8be182dd9218 | 
| children | 0677a6fbb8b6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 632:02d14592bb73 | 633:da72b51c0572 | 
|---|---|
| 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 FLASH_TARGET= flashImage.bin | |
| 5 RAM_TARGET= ramImage.srec | 6 RAM_TARGET= ramImage.srec | 
| 6 | 7 | 
| 7 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` | 8 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` | 
| 8 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` | 9 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` | 
| 9 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork` | 10 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork` | 
| 36 endif | 37 endif | 
| 37 ifeq (${RVM_ETM_SWE},1) | 38 ifeq (${RVM_ETM_SWE},1) | 
| 38 EXT_PIECES+= ../services/etm/xipcode.o | 39 EXT_PIECES+= ../services/etm/xipcode.o | 
| 39 endif | 40 endif | 
| 40 | 41 | 
| 41 all: ${RAM_TARGET} | 42 all: ${FLASH_TARGET} ${RAM_TARGET} | 
| 43 flashImage: ${FLASH_TARGET} | |
| 42 ramImage: ${RAM_TARGET} | 44 ramImage: ${RAM_TARGET} | 
| 43 | 45 | 
| 44 iramcode.o: ${INT_PIECES} | 46 iramcode.o: ${INT_PIECES} | 
| 45 ${LD} -r -o $@ ${INT_PIECES} | 47 ${LD} -r -o $@ ${INT_PIECES} | 
| 46 | 48 | 
| 47 xipcode.o: ${EXT_PIECES} | 49 xipcode.o: ${EXT_PIECES} | 
| 48 ${LD} -r -o $@ ${EXT_PIECES} | 50 ${LD} -r -o $@ ${EXT_PIECES} | 
| 49 | 51 | 
| 50 flashImage.ld: ld-script.src flash.m4 ../include/config.m4 | 52 flashImage.ld: ld-script.src flash.m4 ../include/config.m4 | 
| 51 m4 flash.m4 ld-script.src > $@ | 53 m4 flash.m4 ld-script.src > $@ | 
| 54 | |
| 55 flashImage.elf: iramcode.o xipcode.o ../sysglue/flashboot.o ${LIB_DEPEND} \ | |
| 56 flashImage.ld | |
| 57 ${LD} -N -T flashImage.ld -o $@ -Map flashImage.map \ | |
| 58 iramcode.o xipcode.o ../sysglue/flashboot.o \ | |
| 59 ${LIB_LINK_ORDER} | |
| 60 | |
| 61 flashImage.bin: flashImage.elf | |
| 62 ${OBJCOPY} -O binary $< $@ | |
| 52 | 63 | 
| 53 ramImage.ld: ld-script.src xram.m4 ../include/config.m4 | 64 ramImage.ld: ld-script.src xram.m4 ../include/config.m4 | 
| 54 m4 xram.m4 ld-script.src > $@ | 65 m4 xram.m4 ld-script.src > $@ | 
| 55 | 66 | 
| 56 ramImage.elf: iramcode.o xipcode.o ${LIB_DEPEND} ramImage.ld | 67 ramImage.elf: iramcode.o xipcode.o ${LIB_DEPEND} ramImage.ld | 
