83b3aadaa3
因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链 此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
23 lines
595 B
Python
23 lines
595 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
group = []
|
|
CPPPATH = []
|
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
|
print("\nThe current project does not support iar build\n")
|
|
Return('group')
|
|
elif rtconfig.PLATFORM in ['gcc'] :
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
|
|
elif rtconfig.PLATFORM == 'armclang':
|
|
if GetOption('target') != 'mdk5':
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
|
|
|
|
group += DefineGroup('ra_cfg', src, depend = [''], CPPPATH = CPPPATH)
|
|
Return('group')
|