2014-07-18 17:17:56 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('driverlib/*.c')
|
|
|
|
SrcRemove(src, 'onewire.c')
|
|
|
|
|
|
|
|
# add for startup script
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
|
|
src += ['startup/startup_gcc.c']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
|
|
src += ['startup/startup_rvmdk.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
src += ['startup/startup_ewarm.c']
|
|
|
|
|
|
|
|
CPPPATH = [cwd, cwd + '/inc', cwd + '/driverlib']
|
2018-05-13 23:23:25 +08:00
|
|
|
CCFLAGS = ' --diag_suppress=pe177'
|
2014-07-18 17:17:56 +08:00
|
|
|
|
|
|
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
2018-05-13 23:23:25 +08:00
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, CCFLAGS = CCFLAGS)
|
2014-07-18 17:17:56 +08:00
|
|
|
|
|
|
|
Return('group')
|