view src/cs/layer1/tpu_drivers/source/makefile @ 303:f76436d19a7a default tip

!GPRS config: fix long-standing AT+COPS chance hanging bug There has been a long-standing bug in FreeCalypso going back years: sometimes in the AT command bring-up sequence of an ACI-only MS, the AT+COPS command would produce only a power scan followed by cessation of protocol stack activity (only L1 ADC traces), instead of the expected network search sequence. This behaviour was seen in different FC firmware versions going back to Citrine, and seemed to follow some law of chance, not reliably repeatable. This bug has been tracked down and found to be specific to !GPRS configuration, stemming from our TCS2/TCS3 hybrid and reconstruction of !GPRS support that was bitrotten in TCS3.2/LoCosto version. ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3 version and had to be pulled from TCS2 - but as it turns out, there is a new field in the MMR_REG_REQ primitive that needs to be set correctly, and that psa_mms.c module is the place where this initialization needed to be added.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 08 Jun 2023 08:23:37 +0000
parents 4e78acac3d88
children
line wrap: on
line source

#    Filename makefile                  
#        
#       Makefile for GSM TPU drivers - UNIX version
#
#       Copyright (c) Texas Instruments 1996
#      
#
.SUFFIXES: .obj $(SUFFIXES)

# Grab customer and rf id's
#--------------------------
CUST=$(cust)
RF=$(rf)
CHIPSET=$(bsb)
ANALOG=$(anl)
DSP=$(dsp)
BOARD=$(board)
LONG_JUMP=$(ljump)
TESTMODE=$(testmode)

# Call of external makefile to extract RF_FAM and ANLG_FAM
#---------------------------------------------------------
include ../../tools/define_split.mak


CL470_0 = cl470
CL470_3 = perl ../../tools/icl470.pl cl470

CL470 = $(CL470_$(LONG_JUMP))
AR470 = ar470

# Source code path
#-----------------
SOURCE=../source$(CUST)

# Include file source paths
#--------------------------
INCLUDE = -I../../include -I../../drivers1/common -I../source$(CUST) -I../../cust$(CUST) \
          -I../../tm_include -I../../audio_include \
          -I../../audio_cust$(CUST) -I../../hint -I../../gtt_include
           
DEPEND = $(SOURCE)/tpudrv$(RF_FAM).h ../../include/l1_time.h ../../drivers1/common/iq.h \
         ../../cust$(CUST)/l1_rf$(RF_FAM).h tpudrv.h ../../include/l1_sw.cfg ../../include/l1_hw.cfg \
         ../../include/l1_confg.h


# Object files path
#------------------
OBJ=$(SOURCE)/obj
OBJS=obj


# EXECUTION TARGET
#-----------------
all:	../lib/tpudrv_$(CUST)_$(RF_FAM)_$(CHIPSET)_$(ANLG_FAM)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib 

clean:
	-rm obj/tpudrv.obj $(OBJ)/tpudrv$(RF_FAM).obj 
	-rm ../lib/tpudrv_$(CUST)_$(RF_FAM)_$(ANLG_FAM)_$(BOARD)_$(LONG_JUMP).lib

# How to...
#----------

#...generate the library
#-----------------------
../lib/tpudrv_$(CUST)_$(RF_FAM)_$(CHIPSET)_$(ANLG_FAM)_$(DSP)_$(BOARD)_$(LONG_JUMP)_$(TESTMODE).lib: obj/tpudrv.$(OBJS) $(OBJ)/tpudrv$(RF_FAM).$(OBJS)
	$(AR470) r $@ obj/tpudrv.$(OBJS) $(OBJ)/tpudrv$(RF_FAM).$(OBJS)

#...generate the common object file
#----------------------------------
obj/tpudrv.$(OBJS): $(DEPEND) tpudrv.c
	$(CL470) $(INCLUDE) -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dLONG_JUMP=$(LONG_JUMP) -dTESTMODE=$(TESTMODE) -c -g -me -mt -mw -o2 -pw2 -fr obj -eo$(OBJS) tpudrv.c


#...generate the target dependant object file
#--------------------------------------------
$(OBJ)/tpudrv$(RF_FAM).$(OBJS): $(DEPEND) $(SOURCE)/tpudrv$(RF_FAM).c 
	$(CL470) $(INCLUDE) -dCHIPSET=$(bsb) -dANALOG=$(anl) -dDSP=$(dsp) -dBOARD=$(BOARD) -dLONG_JUMP=$(LONG_JUMP) -dTESTMODE=$(TESTMODE) -c -g -me -mt -mw -o2 -pw2 -fr$(OBJ) -eo$(OBJS) $(SOURCE)/tpudrv$(RF_FAM).c