rt-thread-official/bsp/imxrt/Libraries/imxrt1050/devices/MIMXRT1052/SConscript

23 lines
701 B
Python
Raw Normal View History

2018-09-20 23:18:14 +08:00
# RT-Thread building script for component
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Glob('drivers/*.c') + Glob('*.c')
CPPPATH = [cwd, cwd + '/drivers', cwd + '/utilities']
CPPDEFINES = ['CPU_MIMXRT1052DVL6B', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1']
# add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
src += [cwd + '/gcc/startup_MIMXRT1052.S']
elif rtconfig.CROSS_TOOL == 'keil':
src += [cwd + '/arm/startup_MIMXRT1052.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/iar/startup_MIMXRT1052.s']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')