2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-23 17:55:04 +01:00

ticgt: support stlib

This commit is contained in:
Jerome Carretero 2012-01-20 09:58:55 -05:00
parent e1f5ed8555
commit fadbe6cd6d
2 changed files with 14 additions and 11 deletions

View File

@ -3,11 +3,6 @@
# Jérôme Carretero, 2012 (zougloub)
# Put this file in ti-dsplink-tree/dsplink/dsp/src/samples/message
import os, sys
opj = os.path.join
def options(opt):
opt.load('ticgt')
@ -35,15 +30,23 @@ def build(bld):
)
bld(
target='message-demo',
features='c cprogram',
target='messagelib',
features='c cstlib',
source=bld.path.ant_glob('*.c'),
use=[
'DSPBIOS', 'DSPLINK',
'message',
],
# Taken from DSP/Link generated _defines.txt files, replaced a -D by a -d
defines=' -dTSK_MODE -dDDSP_DEBUG -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:] + [
],
)
bld(
target='message-demo',
features='c cprogram',
use=[
'messagelib',
'message',
],
)

View File

@ -31,7 +31,7 @@ def find_tiar(conf):
ar = conf.cmd_to_list(ar)
conf.env.AR = ar
conf.env.AR_NAME = 'tiar'
conf.env.ARFLAGS = 'rcs'
conf.env.ARFLAGS = 'qru'
@conf
def ticc_common_flags(conf):
@ -45,7 +45,7 @@ def ticc_common_flags(conf):
v['LIB_ST'] = '-l%s' # template for adding libs
v['LIBPATH_ST'] = '-i%s' # template for adding libpaths
v['STLIB_ST'] = '-l%s'
v['STLIB_ST'] = '-l=%s.lib'
v['STLIBPATH_ST'] = '-i%s'
# program
@ -53,7 +53,7 @@ def ticc_common_flags(conf):
# static lib
#v['LINKFLAGS_cstlib'] = ['-Wl,-Bstatic']
v['cstlib_PATTERN'] = 'lib%s.a'
v['cstlib_PATTERN'] = '%s.lib'
def configure(conf):
v = conf.env