rt-thread-official/bsp/tm4c129x/libraries/SConscript

27 lines
739 B
Python
Raw Normal View History

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')
2021-12-22 11:03:03 +08:00
CFLAGS = ''
# add for startup script
if rtconfig.PLATFORM in ['gcc']:
src += ['startup/startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/startup_rvmdk.S']
elif rtconfig.PLATFORM in ['iccarm']:
src += ['startup/startup_ewarm.c']
2021-12-22 11:03:03 +08:00
CFLAGS += ' --diag_suppress=pe177'
CPPPATH = [cwd, cwd + '/inc', cwd + '/driverlib']
CPPDEFINES = [rtconfig.PART_TYPE]
2021-12-22 11:03:03 +08:00
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, CFLAGS = CFLAGS)
Return('group')