2014-06-29 00:34:20 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# get current directory
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
2014-07-03 22:08:29 +08:00
|
|
|
path = [cwd, cwd + '/MK64F12']
|
2014-06-29 00:34:20 +08:00
|
|
|
src = Glob('MK64F12/*.c')
|
|
|
|
|
2017-07-01 11:33:12 +08:00
|
|
|
src += ['system_MK64F12.c']
|
|
|
|
|
2014-06-29 00:34:20 +08:00
|
|
|
#add for startup script
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
|
|
src = src + ['TOOLCHAIN_GCC_ARM/startup_MK64F12.S']
|
2014-07-03 22:08:29 +08:00
|
|
|
src = src + ['TOOLCHAIN_GCC_ARM/startup.c']
|
|
|
|
path += [cwd + 'TOOLCHAIN_GCC_ARM']
|
2014-06-29 00:34:20 +08:00
|
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
|
|
src = src + ['TOOLCHAIN_ARM_STD/startup_MK64F12.s']
|
|
|
|
# elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
|
2017-07-01 11:33:12 +08:00
|
|
|
CPPDEFINES = ['CPU_MK64FN1M0VLL12']
|
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
2014-06-29 00:34:20 +08:00
|
|
|
#CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|