view components/aci @ 118:225e39652387

TMS470 build system: added m0-to-bin-c155
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 07 Nov 2018 06:18:05 +0000
parents 5c4db73d289a
children 5f3544fc0308
line wrap: on
line source

# Building the TCS3.2 version of aci.lib

CFLAGS="-me -mt -o -pw2 -x -mw"
CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork -mthumb"
CPPFLAGS=

make_version aci
c_file aci_version.c

# Defines

CPPFLAGS=-DCCDTABLES_EXTERN
CPPFLAGS="$CPPFLAGS -DOPTION_MULTITHREAD"
CPPFLAGS="$CPPFLAGS -DNEW_FRAME"
CPPFLAGS="$CPPFLAGS -DNEW_ENTITY"
CPPFLAGS="$CPPFLAGS -D_TARGET_"
CPPFLAGS="$CPPFLAGS -DSHARED_VSI"
CPPFLAGS="$CPPFLAGS -DALR"
CPPFLAGS="$CPPFLAGS -DFF_HOMEZONE"
CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON"
CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC"
CPPFLAGS="$CPPFLAGS -DFF_CPHS"
CPPFLAGS="$CPPFLAGS -D_TMS470"
CPPFLAGS="$CPPFLAGS -DUART"
CPPFLAGS="$CPPFLAGS -DFF_ATI"
CPPFLAGS="$CPPFLAGS -DNWARN"
CPPFLAGS="$CPPFLAGS -DFF_EM_MODE"
CPPFLAGS="$CPPFLAGS -DVOCODER_FUNC_INTERFACE"
CPPFLAGS="$CPPFLAGS -DAT_INTERPRETER"
CPPFLAGS="$CPPFLAGS -DUSE_L1FD_FUNC_INTERFACE"

if [ "$SRVC" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DFAX_AND_DATA"
	if [ "$SRVC" = 1 ]
	then
		CPPFLAGS="$CPPFLAGS -DFF_FAX"
	fi
	CPPFLAGS="$CPPFLAGS -DUSE_L2FD_FUNC_INTERFACE"
fi

CPPFLAGS="$CPPFLAGS -DSRVC=$SRVC"
CPPFLAGS="$CPPFLAGS -DMMI=$MMI"

if [ "$MMI" = 0 ]
then
	CPPFLAGS="$CPPFLAGS -DACI"
elif [ "$MMI" = 2 ]
then
	CPPFLAGS="$CPPFLAGS -DMFW"
fi

CPPFLAGS="$CPPFLAGS -DPHONEBOOK_EXTENSION"

if [ "$GPRS" = 1 ]
then
	CPPFLAGS="$CPPFLAGS -DGPRS"
fi

CPPFLAGS="$CPPFLAGS -DSMS_PDU_SUPPORT"
CPPFLAGS="$CPPFLAGS -DSIM_TOOLKIT"
CPPFLAGS="$CPPFLAGS -DDTI2"
CPPFLAGS="$CPPFLAGS -DDTI"
CPPFLAGS="$CPPFLAGS -DUART"
CPPFLAGS="$CPPFLAGS -DFF_ATI"
CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
CPPFLAGS="$CPPFLAGS -DBOARD=41"

# FreeCalypso additions to make the TCS3.2 version
# behave more like TCS211

CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_CMD_WS46"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_ATR"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_CPRSM"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_CSCN"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_CUSDR"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_CUST"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_DBGINFO"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_RDLB"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECP"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_SECS"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_AT_P_CMD_STDR"
CPPFLAGS="$CPPFLAGS -DTI_PS_FF_CONC_SMS"

if [ "$ALLOW_CSIM_GSM" = 1 ]
then
	CPPFLAGS="$CPPFLAGS -DALLOW_CSIM_GSM"
fi

if [ "$MEMSUPER" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
fi

# Includes

CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/include"
CPPFLAGS="$CPPFLAGS -I../../cdg-hybrid/cdginc"

#if [ "$MMI" = 2 ]
#then
#	CPPFLAGS="$CPPFLAGS -I$SRC/ui3/mfw"
#fi

CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/ksd"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/ati_ext"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci_ext"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci_dti_mng"
CPPFLAGS="$CPPFLAGS -I../../cdg-hybrid/sap-inline"
CPPFLAGS="$CPPFLAGS -I.."
CPPFLAGS="$CPPFLAGS -I../config"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/riviera"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_app"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/abb"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/armio"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/clkm"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/conf"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dma"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/dsp_dwnld"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/inth"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/memif"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/rhea"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/security"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/spi"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/timer"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/uart"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/drivers/drv_core/ulpd"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/system"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/layer1/include"
CPPFLAGS="$CPPFLAGS -I$SRC/cs/services"

# ACI source modules

SRCDIR=$SRC/g23m-aci/aci

# ATI stuff
c_file $SRCDIR/ati_sat.c
c_file $SRCDIR/ati_src_sat.c
c_file $SRCDIR/ati_pdu.c
c_file $SRCDIR/ati_bas.c
c_file $SRCDIR/ati_cc.c
c_file $SRCDIR/ati_cmd.c
c_file $SRCDIR/ati_csc.c
c_file $SRCDIR/ati_err.c

if [ "$SRVC" != 0 ]
then
	c_file $SRCDIR/ati_fd.c
fi

c_file $SRCDIR/ati_io.c
c_file $SRCDIR/ati_mm.c
c_file $SRCDIR/ati_phb.c
c_file $SRCDIR/ati_prs.c
c_file $SRCDIR/ati_ret.c
c_file $SRCDIR/ati_sim.c
c_file $SRCDIR/ati_sms.c
c_file $SRCDIR/ati_ss.c

if [ "$GPRS" = 1 ]
then
	c_file $SRCDIR/ati_gprs.c
fi

c_file $SRCDIR/ati_mmi.c
c_file $SRCDIR/ati_em.c
c_file $SRCDIR/ati_em_ret.c
c_file $SRCDIR/ati_cphs.c
c_file $SRCDIR/ati_dti.c

c_file $SRCDIR/ati_src_rvt.c
c_file $SRCDIR/ati_omcompat.c
c_file $SRCDIR/ati_audio.c
c_file $SRCDIR/ati_fchg.c

# ACI stuff
c_file $SRCDIR/aci_aci.c
c_file $SRCDIR/aci_mem.c
c_file $SRCDIR/aci_csf.c
c_file $SRCDIR/aci_pei.c
c_file $SRCDIR/aci_tim.c
c_file $SRCDIR/aci_util.c
c_file $SRCDIR/aci_lst.c
c_file $SRCDIR/dti_cntrl_mng.c
c_file $SRCDIR/phb.c
c_file $SRCDIR/aoc.c
c_file $SRCDIR/aci_mfw.c
c_file $SRCDIR/aci_slock.c
c_file $SRCDIR/aci_em.c

if [ "$GPRS" = 1 ]
then
	c_file $SRCDIR/gaci_srcc.c
	c_file $SRCDIR/gaci.c
	c_file $SRCDIR/gaci_ret.c
fi

c_file $SRCDIR/hl_audio_drv.c

# ATISRC stuff
c_file $SRCDIR/ati_src_uart.c
c_file $SRCDIR/ati_src_uart_io.c

# CMH stuff (part 1)
c_file $SRCDIR/cmh_sats.c
c_file $SRCDIR/cmh_satr.c
c_file $SRCDIR/cmh_satq.c

# CMH stuff (part 2)
if [ "$SRVC" = 0 ]
then
	c_file $SRCDIR/cmh_ccf.c
	c_file $SRCDIR/cmh_ccq.c
	c_file $SRCDIR/cmh_ccr.c
	c_file $SRCDIR/cmh_ccs.c
	c_file $SRCDIR/cmh_dmy.c
	c_file $SRCDIR/cmh_f.c
	c_file $SRCDIR/cmh_mmf.c
	c_file $SRCDIR/cmh_mmir.c
	c_file $SRCDIR/cmh_mmis.c
	c_file $SRCDIR/cmh_mmit.c
	c_file $SRCDIR/cmh_mmiq.c
	c_file $SRCDIR/cmh_mmq.c
	c_file $SRCDIR/cmh_mmr.c
	c_file $SRCDIR/cmh_mms.c
	c_file $SRCDIR/cmh_mmt.c
	c_file $SRCDIR/cmh_phbf.c
	c_file $SRCDIR/cmh_ssq.c
	c_file $SRCDIR/cmh_ssr.c
	c_file $SRCDIR/cmh_sss.c
	c_file $SRCDIR/cmh_phbq.c
	c_file $SRCDIR/cmh_phbs.c
	c_file $SRCDIR/cmh_phbt.c
	c_file $SRCDIR/cmh_phbr.c
	c_file $SRCDIR/cmh_simf.c
	c_file $SRCDIR/cmh_simq.c
	c_file $SRCDIR/cmh_simr.c
	c_file $SRCDIR/cmh_sims.c
	c_file $SRCDIR/cmh_smsf.c
	c_file $SRCDIR/cmh_smsq.c
	c_file $SRCDIR/cmh_smsr.c
	c_file $SRCDIR/cmh_smss.c
	c_file $SRCDIR/cmh_ssf.c
	c_file $SRCDIR/cmh_tsts.c
	c_file $SRCDIR/cmh_uartf.c
    	c_file $SRCDIR/cmh_uartr.c
	c_file $SRCDIR/cmh_uarts.c
fi

c_file $SRCDIR/cmh_emq.c
c_file $SRCDIR/cmh_emr.c

# CMH stuff (part 3)
if [ "$SRVC" != 0 ]
then
	c_file $SRCDIR/cmh_ccf.c
	c_file $SRCDIR/cmh_ccq.c
	c_file $SRCDIR/cmh_ccr.c
	c_file $SRCDIR/cmh_ccs.c
	c_file $SRCDIR/cmh_dmy.c
	c_file $SRCDIR/cmh_f.c
	c_file $SRCDIR/cmh_l2rf.c
	c_file $SRCDIR/cmh_l2rq.c
	c_file $SRCDIR/cmh_l2rr.c
	c_file $SRCDIR/cmh_l2rs.c
	c_file $SRCDIR/cmh_mmf.c
	c_file $SRCDIR/cmh_mmir.c
	c_file $SRCDIR/cmh_mmis.c
	c_file $SRCDIR/cmh_mmit.c
	c_file $SRCDIR/cmh_mmiq.c
	c_file $SRCDIR/cmh_mmq.c
	c_file $SRCDIR/cmh_mmr.c
	c_file $SRCDIR/cmh_mms.c
	c_file $SRCDIR/cmh_mmt.c
	c_file $SRCDIR/cmh_phbf.c
	c_file $SRCDIR/cmh_phbq.c
	c_file $SRCDIR/cmh_ssq.c
	c_file $SRCDIR/cmh_ssr.c
	c_file $SRCDIR/cmh_sss.c
	c_file $SRCDIR/cmh_phbs.c
	c_file $SRCDIR/cmh_phbt.c
	c_file $SRCDIR/cmh_phbr.c
	c_file $SRCDIR/cmh_raf.c
	c_file $SRCDIR/cmh_rar.c
	c_file $SRCDIR/cmh_ras.c
	c_file $SRCDIR/cmh_simf.c
	c_file $SRCDIR/cmh_simq.c
	c_file $SRCDIR/cmh_simr.c
	c_file $SRCDIR/cmh_sims.c
	c_file $SRCDIR/cmh_smsf.c
	c_file $SRCDIR/cmh_smsq.c
	c_file $SRCDIR/cmh_smsr.c
	c_file $SRCDIR/cmh_smss.c
	c_file $SRCDIR/cmh_ssf.c

	if [ "$SRVC" = 1 ]
	then
		c_file $SRCDIR/cmh_t30f.c
		c_file $SRCDIR/cmh_t30r.c
		c_file $SRCDIR/cmh_t30s.c
		c_file $SRCDIR/cmh_t30q.c
	fi

	c_file $SRCDIR/cmh_tsts.c
	c_file $SRCDIR/cmh_uartf.c
	c_file $SRCDIR/cmh_uartr.c
	c_file $SRCDIR/cmh_uarts.c
fi

# CMH stuff (part 4)
# all WAP/TCPIP/SATE stuff - not in FreeCalypso

# CMH stuff (part 5)
if [ "$GPRS" = 1 ]
then
	c_file $SRCDIR/cmh_gmmf.c
	c_file $SRCDIR/cmh_gmmq.c
	c_file $SRCDIR/cmh_gmmr.c
	c_file $SRCDIR/cmh_gmms.c
	c_file $SRCDIR/cmh_gpppf.c
	c_file $SRCDIR/cmh_gpppr.c
	c_file $SRCDIR/cmh_gppps.c
	c_file $SRCDIR/cmh_snds.c
	c_file $SRCDIR/cmh_sndr.c
	c_file $SRCDIR/cmh_smf.c
	c_file $SRCDIR/cmh_smq.c
	c_file $SRCDIR/cmh_smr.c
	c_file $SRCDIR/cmh_sms.c
	c_file $SRCDIR/cmh_smt.c
fi

# CMH stuff (part 6)
c_file $SRCDIR/cmh_cphs.c
c_file $SRCDIR/cmh_dti.c

# PSA stuff
c_file $SRCDIR/psa_satf.c
c_file $SRCDIR/psa_satp.c
c_file $SRCDIR/psa_sats.c
c_file $SRCDIR/cmh_satf.c

c_file $SRCDIR/psa_ccf.c
c_file $SRCDIR/psa_ccp.c
c_file $SRCDIR/psa_ccs.c
c_file $SRCDIR/psa_f.c

if [ "$SRVC" != 0 ]
then
	c_file $SRCDIR/psa_l2rf.c
	c_file $SRCDIR/psa_l2rp.c
	c_file $SRCDIR/psa_l2rs.c
fi

c_file $SRCDIR/psa_mmf.c
c_file $SRCDIR/psa_mmif.c
c_file $SRCDIR/psa_mmip.c
c_file $SRCDIR/psa_mmis.c
c_file $SRCDIR/psa_mmp.c
c_file $SRCDIR/psa_mms.c

if [ "$SRVC" != 0 ]
then
	c_file $SRCDIR/psa_raf.c
	c_file $SRCDIR/psa_rap.c
	c_file $SRCDIR/psa_ras.c
fi

c_file $SRCDIR/psa_simf.c
c_file $SRCDIR/psa_simp.c
c_file $SRCDIR/psa_sims.c
c_file $SRCDIR/psa_smsf.c
c_file $SRCDIR/psa_smsp.c
c_file $SRCDIR/psa_smss.c
c_file $SRCDIR/psa_ssf.c
c_file $SRCDIR/psa_ssp.c
c_file $SRCDIR/psa_sss.c

if [ "$SRVC" = 1 ]
then
	c_file $SRCDIR/psa_t30f.c
	c_file $SRCDIR/psa_t30p.c
	c_file $SRCDIR/psa_t30s.c
fi

c_file $SRCDIR/psa_util.c
c_file $SRCDIR/psa_uartp.c
c_file $SRCDIR/psa_uarts.c

if [ "$SRVC" != 0 ]
then
	c_file $SRCDIR/psa_tras.c
	c_file $SRCDIR/psa_trap.c
fi

c_file $SRCDIR/psa_mtst.c

if [ "$GPRS" = 1 ]
then
	c_file $SRCDIR/psa_gmmf.c
	c_file $SRCDIR/psa_gmmp.c
	c_file $SRCDIR/psa_gmms.c
	c_file $SRCDIR/psa_gpppf.c
	c_file $SRCDIR/psa_gpppp.c
	c_file $SRCDIR/psa_gppps.c
	c_file $SRCDIR/psa_sndp.c
	c_file $SRCDIR/psa_snds.c
	c_file $SRCDIR/psa_smf.c
	c_file $SRCDIR/psa_smp.c
	c_file $SRCDIR/psa_sms.c
	c_file $SRCDIR/psa_upmp.c
	c_file $SRCDIR/psa_upms.c
fi

# miscellaneous stuff
c_file $SRCDIR/sap_dti.c

if [ "$GPRS" = 1 ]
then
	c_file $SRCDIR/sap_ppp.c
fi

c_file $SRCDIR/sap_em.c
c_file $SRCDIR/conc_sms.c
c_file $SRCDIR/cphs.c
c_file $SRCDIR/cphs_aci.c
c_file $SRCDIR/line_edit.c
c_file $SRCDIR/line_split.c
c_file $SRCDIR/dcm_f.c

# KSD sourceset, new defines

CPPFLAGS=-DCCDTABLES_EXTERN
CPPFLAGS="$CPPFLAGS -DOPTION_MULTITHREAD"
CPPFLAGS="$CPPFLAGS -DNEW_FRAME"
CPPFLAGS="$CPPFLAGS -DNEW_ENTITY"
CPPFLAGS="$CPPFLAGS -D_TARGET_"
CPPFLAGS="$CPPFLAGS -DSHARED_VSI"
CPPFLAGS="$CPPFLAGS -DALR"
CPPFLAGS="$CPPFLAGS -DFF_HOMEZONE"
CPPFLAGS="$CPPFLAGS -DFF_MMI_SAT_ICON"
CPPFLAGS="$CPPFLAGS -DFF_MMI_SMS_DYNAMIC"
CPPFLAGS="$CPPFLAGS -DFF_CPHS"
CPPFLAGS="$CPPFLAGS -D_TMS470"
CPPFLAGS="$CPPFLAGS -DUART"
CPPFLAGS="$CPPFLAGS -DFF_ATI"
CPPFLAGS="$CPPFLAGS -DNWARN"
CPPFLAGS="$CPPFLAGS -DFF_EM_MODE"
CPPFLAGS="$CPPFLAGS -DAT_INTERPRETER"
CPPFLAGS="$CPPFLAGS -DUSE_L1FD_FUNC_INTERFACE"

if [ "$SRVC" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DFAX_AND_DATA"
	if [ "$SRVC" = 1 ]
	then
		CPPFLAGS="$CPPFLAGS -DFF_FAX"
	fi
	CPPFLAGS="$CPPFLAGS -DUSE_L2FD_FUNC_INTERFACE"
fi

CPPFLAGS="$CPPFLAGS -DSRVC=$SRVC"
CPPFLAGS="$CPPFLAGS -DMMI=$MMI"

if [ "$MMI" = 0 ]
then
	CPPFLAGS="$CPPFLAGS -DACI"
elif [ "$MMI" = 2 ]
then
	CPPFLAGS="$CPPFLAGS -DMFW"
fi

CPPFLAGS="$CPPFLAGS -DPHONEBOOK_EXTENSION"

if [ "$GPRS" = 1 ]
then
	CPPFLAGS="$CPPFLAGS -DGPRS"
fi

CPPFLAGS="$CPPFLAGS -DSMS_PDU_SUPPORT"
CPPFLAGS="$CPPFLAGS -DSIM_TOOLKIT"
CPPFLAGS="$CPPFLAGS -DCHIPSET=$CHIPSET"
CPPFLAGS="$CPPFLAGS -DBOARD=41"

if [ "$MEMSUPER" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
fi

# New includes

CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/condat/com/include"
CPPFLAGS="$CPPFLAGS -I../../cdg-hybrid/cdginc"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/aci"
CPPFLAGS="$CPPFLAGS -I$SRC/g23m-aci/ksd"
CPPFLAGS="$CPPFLAGS -I../../cdg-hybrid/sap-inline"

# KSD source modules

SRCDIR=$SRC/g23m-aci/ksd

c_file $SRCDIR/ksd.c
c_file $SRCDIR/ksd_utl.c