You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
507 B
18 lines
507 B
10 months ago
|
from building import *
|
||
|
import rtconfig
|
||
|
cwd = GetCurrentDir()
|
||
|
src = Glob('sdk/*.c')
|
||
|
CPPPATH = [cwd + '/sdk', cwd + '/core', cwd]
|
||
|
|
||
|
src += Glob('core/*.c')
|
||
|
|
||
|
if rtconfig.PLATFORM in ['gcc']:
|
||
|
src += ['startup/flash_start_gcc.s']
|
||
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||
|
src += ['startup/startup.s', 'startup/flash_start.s']
|
||
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||
|
src += ['startup/flash_start_iar.s']
|
||
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|