FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/L1/dsp/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 | bacf366e8ce3 |
children |
rev | line source |
---|---|
586
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 CC= arm-elf-gcc |
899
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
2 AR= arm-elf-ar |
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
3 RANLIB= arm-elf-ranlib |
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
4 |
586
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb |
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 |
901
bacf366e8ce3
gsm-fw: DSP patch codes included in the link
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
899
diff
changeset
|
7 OBJS= amr_mms_patch_file36_10.o amr_sch_patch_file36_10.o \ |
bacf366e8ce3
gsm-fw: DSP patch codes included in the link
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
899
diff
changeset
|
8 e2_patch_file36_10.o gprs_patch_file36_10.o leadapi.o leadboot.o \ |
bacf366e8ce3
gsm-fw: DSP patch codes included in the link
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
899
diff
changeset
|
9 patch_file36_10_dyn_dwl.o tty_patch_file36_10.o |
586
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
899
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
11 all: libdsp.a |
586
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 |
899
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
13 libdsp.a: ${OBJS} |
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
14 ${AR} cru $@ ${OBJS} |
ab20a5e9dbf3
gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
586
diff
changeset
|
15 ${RANLIB} $@ |
586
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 clean: |
25a3095e8a98
L1: dsp subdir added to the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 rm -f *.[oa] *.out *errs |