view rvinterf/etmsync/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 38c7078712ab
children 0feb3db6f097
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -I../include
PROGS=	fc-dspapidump fc-fsio fc-getpirimei fc-pirhackinit
INSTBIN=/usr/local/bin

DSPDUMP_OBJS=	connect.o dspapidump.o interf.o launchrvif.o memops.o \
		simplemain.o

FSIO_OBJS=	connect.o dispatch.o fdcmd.o fileio.o fsbasics.o fscmdtab.o \
		fserr.o fsiomain.o fsmisc.o fspath.o fsread.o fsupload.o \
		fswrite.o interf.o launchrvif.o memcmd.o memops.o rfcap.o \
		stddirs.o symlink.o

PIRIMEI_OBJS=	connect.o interf.o launchrvif.o memops.o pirimei.o \
		pirimeimain.o simplemain.o

PIRHACK_OBJS=	connect.o fileio.o fserr.o interf.o launchrvif.o memops.o \
		pirhackinit.o pirimei.o rfcap.o simplemain.o stddirs.o

all:	${PROGS}

fc-dspapidump:	${DSPDUMP_OBJS}
	${CC} ${CFLAGS} -o $@ ${DSPDUMP_OBJS}

fc-fsio:	${FSIO_OBJS}
	${CC} ${CFLAGS} -o $@ ${FSIO_OBJS}

fc-getpirimei:	${PIRIMEI_OBJS}
	${CC} ${CFLAGS} -o $@ ${PIRIMEI_OBJS} -lcrypto

fc-pirhackinit:	${PIRHACK_OBJS}
	${CC} ${CFLAGS} -o $@ ${PIRHACK_OBJS} -lcrypto

install:	${PROGS}
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f *.o *.out *errs ${PROGS}