rt-thread/bsp/mm32f327x/Libraries/SConscript

17 lines
640 B
Python
Raw Normal View History

2021-08-06 16:59:04 +08:00
from building import *
import rtconfig
cwd = GetCurrentDir()
src = ['MM32F327x/Source/system_mm32f327x.c']
CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include', cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_lib/Inc']
src += Glob('MM32F327x/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'keil':
src += ['MM32F327x/Source/KEIL_StartAsm/startup_mm32f327x_keil.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32F327x/Source/IAR_StartAsm/startup_mm32f327x_iar.s']
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')