| 123456789101112131415161718192021222324252627 |
- import rtconfig
- from building import *
- # get current directory
- cwd = GetCurrentDir()
- # The set of source files associated with this SConscript file.
- src = Split('''
- GD/GD32F4xx/Source/system_gd32f4xx.c
- ''')
- path = [
- cwd + '/GD/GD32F4xx/Include',
- cwd,]
- if rtconfig.PLATFORM in ['gcc']:
- src += ['GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
- elif rtconfig.PLATFORM in ['armcc', 'armclang']:
- src += ['GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
- elif rtconfig.PLATFORM in ['iccarm']:
- src += ['GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']
- CPPDEFINES = ['USE_STDPERIPH_DRIVER']
- group = DefineGroup('Libraries', src, depend = ['SOC_SERIES_GD32F4xx'], CPPPATH = path, CPPDEFINES = CPPDEFINES)
- Return('group')
|