FreeCalypso > hg > freecalypso-sw
view gsm-fw/finlink/Makefile @ 923:10b4bed10192
gsm-fw/L1: fix for the DSP patch corruption bug
The L1 code we got from the LoCosto fw contains a feature for DSP CPU load
measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier
DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the
code dealing with that feature is conditionalized as #if (DSP >= 38),
but one spot was missed, and the MCU code was writing into an API word
dealing with this feature. In TCS211 this DSP API word happens to be
used by the DSP code patch, hence that write was corrupting the patched
DSP code.
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 19 Oct 2015 17:13:56 +0000 |
parents | ab20a5e9dbf3 |
children | 62ca61292b77 |
line wrap: on
line source
CC= arm-elf-gcc LD= arm-elf-ld OBJCOPY=arm-elf-objcopy FLASH_TARGET= flashImage.bin RAM_TARGET= ramImage.srec LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork` LIBGCC_T= `${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb` sinclude ../include/config.mk BASE_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \ ../nucleus/libplus.iram.a ../sprintf/libsprintf.a \ ../libiram/libiram.a LIB_DEPEND= ${BASE_LIBS} ifeq (${CONFIG_INCLUDE_PS},1) PS_LIBS= ../g23m-aci/dti/libdti.a ../g23m-glue/gdi/libgdi.a \ ../comlib/comlib.a ../ccd/libccd.a LIB_LINK_ORDER+=${PS_LIBS} LIB_DEPEND+= ${PS_LIBS} endif ifeq (${CONFIG_INCLUDE_GPF},1) GPF_LIBS= ../gpf/libs/libgpf.xip.a ../gpf/libs/libgpf.iram.a LIB_LINK_ORDER+= --start-group ${GPF_LIBS} --end-group LIB_DEPEND+= ${GPF_LIBS} endif ifeq (${CONFIG_INCLUDE_L1},1) LIB_LINK_ORDER+=../L1/dsp/libdsp.a LIB_DEPEND+= ../L1/dsp/libdsp.a endif LIB_LINK_ORDER+= ${BASE_LIBS} LIB_LINK_ORDER+= --start-group ${LIBC_A} ${LIBGCC_A} --end-group INT_PIECES= ../bsp/iramcode.o EXT_PIECES= ../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o \ ../services/ffs/xipcode.o ../services/dar/xipcode.o ifeq (${CONFIG_INCLUDE_GPF},1) EXT_PIECES+= ../gpf/conf/xipcode.o endif ifeq (${CONFIG_INCLUDE_L1},1) INT_PIECES+= ../L1/iramcode.o EXT_PIECES+= ../L1/xipcode.o endif ifeq (${CONFIG_INCLUDE_PS},1) EXT_PIECES+= ../g23m-aci/xipcode.o ../g23m-gsm/xipcode.o EXT_PIECES+= ../g23m-glue/cst/xipcode.o endif ifeq (${CONFIG_INCLUDE_PCM},1) EXT_PIECES+= ../services/pcm/xipcode.o endif ifeq (${RVM_ETM_SWE},1) EXT_PIECES+= ../services/etm/xipcode.o endif ifeq (${CONFIG_LLDBG},1) EXT_PIECES+= ../lldbg/xipcode.o endif flashImage: ${FLASH_TARGET} ramImage: ${RAM_TARGET} iramcode.o: ${INT_PIECES} ${LD} -r -o $@ ${INT_PIECES} xipcode.o: ${EXT_PIECES} ${LD} -r -o $@ ${EXT_PIECES} flashImage.ld: ld-script.src flash.m4 ../include/config.m4 m4 flash.m4 ld-script.src > $@ flashImage.elf: iramcode.o xipcode.o ../sysglue/flashboot.o ${LIB_DEPEND} \ flashImage.ld ${LD} -N -T flashImage.ld -o $@ -Map flashImage.map \ iramcode.o xipcode.o ../sysglue/flashboot.o \ ${LIB_LINK_ORDER} flashImage.bin: flashImage.elf ${OBJCOPY} -O binary $< $@ ramImage.ld: ld-script.src xram.m4 ../include/config.m4 m4 xram.m4 ld-script.src > $@ ramImage.elf: iramcode.o xipcode.o ${LIB_DEPEND} ramImage.ld ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \ ${LIB_LINK_ORDER} ramImage.srec: ramImage.elf ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ clean: rm -f *.o *errs *core *.elf *.bin *.srec *.ld *.map FRC: