mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-15 13:49:22 +08:00
60ada9665d
and implement examples in MB9BF506R and LPC176x branches define RT_USING_BSP_CMSIS in rtconfig.h will use CMSIS in bsp define RT_USING_RTT_CMSIS in rtconfig.h will use CMSIS in components git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2146 bbd45198-f89e-11dd-88c7-29a3b14d5316
27 lines
840 B
Python
27 lines
840 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
|
|
|
|
# add for startup script
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
|
|
|
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
|
|
|
if GetDepend(['RT_USING_BSP_CMSIS']):
|
|
CPPPATH += [cwd + '/CMSIS/Include']
|
|
elif GetDepend(['RT_USING_RTT_CMSIS']):
|
|
CPPPATH += [RTT_ROOT + '/components/CMSIS/Include']
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|