mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-20 12:54:30 +08:00
a0f8d43744
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
20 lines
452 B
Python
20 lines
452 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
src = Glob('*.c')
|
|
|
|
# add for startup script
|
|
if rtconfig.PLATFORM == 'gcc':
|
|
src = src + ['start_gcc.S']
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
src = src + ['start_rvds.S']
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
src = src + ['start_iar.S']
|
|
|
|
CPPPATH = [GetCurrentDir()]
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, LIBRARY = '')
|
|
|
|
Return('group')
|