rt-thread/bsp/yichip/yc3121-pos/Libraries/SConscript

18 lines
507 B
Python
Raw Normal View History

2021-09-10 19:41:22 +08:00
from building import *
import rtconfig
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = Glob('sdk/*.c')
2021-09-10 19:41:22 +08:00
CPPPATH = [cwd + '/sdk', cwd + '/core', cwd]
src += Glob('core/*.c')
if rtconfig.PLATFORM in ['gcc']:
2021-09-10 19:41:22 +08:00
src += ['startup/flash_start_gcc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
2023-01-09 10:14:23 +08:00
src += ['startup/startup.s', 'startup/flash_start.s']
elif rtconfig.PLATFORM in ['iccarm']:
2021-09-10 19:41:22 +08:00
src += ['startup/flash_start_iar.s']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
Return('group')