wscript (1559B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # Jérôme Carretero, 2012 (zougloub) 4 # Put this file in ti-dsplink-tree/dsplink/dsp/src/samples/message 5 6 def options(opt): 7 opt.load('ticgt') 8 9 def configure(cfg): 10 cfg.load("ticgt") 11 cfg.env.INCLUDES += ['.'] 12 13 #if cfg.env.CC_NAME == 'ticc': 14 # Take them from the _cflags.txt file 15 cfg.env.CFLAGS += "-o3 -q -pdr -pdv -pden -ml3 -mv6740 --disable:sploop".split() 16 cfg.env.LINKFLAGS += "-c -x".split() 17 18 # Experimental functions, please comment 19 cfg.ti_dsplink_set_platform_flags("OMAPL138", "C674X", "5.XX", "OMAPL138GEM") 20 cfg.ti_set_debug(0) 21 22 def build(bld): 23 bld( 24 target="message", 25 features="c ti-tconf", 26 source=[ 27 'DspBios/5.XX/OMAPL138GEM/message.tcf', 28 'DspBios/5.XX/OMAPL138GEM/message.cmd', 29 ], 30 includes='.', # because we need message.tci 31 use=['DSPLINK', 'DSPBIOS' ], # we need them 32 ) 33 34 bld( 35 target='messagelib', 36 features='c cstlib', 37 source=bld.path.ant_glob('*.c'), 38 use=[ 39 'DSPBIOS', 'DSPLINK', 40 ], 41 # Taken from DSP/Link generated _defines.txt files, replaced a -D by a -d 42 defines=' -dTSK_MODE -dMAX_DSPS=1 -dMAX_PROCESSORS=2 -dID_GPP=1 -dOMAPL138 -dPROC_COMPONENT -dPOOL_COMPONENT -dNOTIFY_COMPONENT -dMPCS_COMPONENT -dRINGIO_COMPONENT -dMPLIST_COMPONENT -dMSGQ_COMPONENT -dMSGQ_ZCPY_LINK -dCHNL_COMPONENT -dCHNL_ZCPY_LINK -dZCPY_LINK -dPROCID=0 -dDA8XXGEM -dDA8XXGEM_INTERFACE=SHMEM_INTERFACE -dPHYINTERFACE=SHMEM_INTERFACE -dDSP_SWI_MODE'.split(" -d")[1:] + [ 43 ], 44 ) 45 46 bld( 47 target='message-demo', 48 features='c cprogram', 49 use=[ 50 'messagelib', 51 'message', 52 ], 53 ) 54