25 lines
540 B
Python
25 lines
540 B
Python
|
import rtconfig
|
||
|
Import('RTT_ROOT')
|
||
|
from building import *
|
||
|
|
||
|
# get current directory
|
||
|
cwd = GetCurrentDir()
|
||
|
|
||
|
|
||
|
src = Glob('MK64F12/*.c')
|
||
|
|
||
|
#add for startup script
|
||
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||
|
src = src + ['TOOLCHAIN_GCC_ARM/startup_MK64F12.S']
|
||
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||
|
src = src + ['TOOLCHAIN_ARM_STD/startup_MK64F12.s']
|
||
|
# elif rtconfig.CROSS_TOOL == 'iar':
|
||
|
|
||
|
path = [cwd, cwd + '/MK64F12']
|
||
|
|
||
|
#CPPDEFINES = ['']
|
||
|
group = DefineGroup('Device', src, depend = [''], CPPPATH = path)
|
||
|
#CPPDEFINES = CPPDEFINES)
|
||
|
|
||
|
Return('group')
|