rt-thread/bsp/mm32l3xx/Libraries/SConscript

19 lines
714 B
Python
Raw Normal View History

2019-04-02 19:24:44 +08:00
from building import *
import rtconfig
cwd = GetCurrentDir()
src = ['MM32L3xx/Source/system_MM32L3xx.c']
CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3xx/Source', cwd + '/MM32L3xx/HAL_lib/inc']
src += Glob('MM32L3xx/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'gcc':
src += ['MM32L3xx/Source/GCC_StartAsm/startup_MM32L3xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')