SConscript 457 字节
Newer Older
Y
yangfasheng 已提交
1 2 3 4 5 6 7 8 9 10 11
Import('RTT_ROOT')
Import('rtconfig')
from building import *

cwd = GetCurrentDir()
src = Glob('DeviceSupport/*.c')

CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport']

# add for startup script 
if rtconfig.CROSS_TOOL == 'keil':
12
    src += ['DeviceSupport/arm/startup_mb9bf56xr.s']
Y
yangfasheng 已提交
13

14 15
if rtconfig.CROSS_TOOL == 'gcc':
    src += ['DeviceSupport/gcc/startup_mb9bf56xr.S']
Y
yangfasheng 已提交
16 17 18 19

group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)

Return('group')