| 1234567891011121314151617181920212223242526272829 |
- Import('RTT_ROOT')
- Import('rtconfig')
- from building import *
- from gcc import *
- cwd = GetCurrentDir()
- src = []
- group = []
- CPPPATH = []
- if rtconfig.PLATFORM in ['iccarm'] + GetGCCLikePLATFORM():
- if rtconfig.PLATFORM == 'iccarm' or GetOption('target') != 'mdk5':
- src += Glob('./fsp/src/bsp/mcu/all/*.c')
- src += Glob('./fsp/src/bsp/mcu/all/cr/*.c')
- src += Glob('./fsp/src/bsp/mcu/r*/*.c')
- src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/*.c')
- src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/*.c')
- src += Glob('./fsp/src/r_*/*.c')
- CPPPATH = [ cwd + '/arm/CMSIS_5/CMSIS/Core_R/Include',
- cwd + '/fsp/inc',
- cwd + '/fsp/inc/api',
- cwd + '/fsp/inc/instances',]
- if GetDepend('BSP_USING_COE_IO'):
- src += Glob('./fsp/src/rm_ethercat_ssc_port/*.c')
- CPPPATH += [cwd + '/fsp/src/rm_ethercat_ssc_port']
- group = DefineGroup('RZN', src, depend = [''], CPPPATH = CPPPATH)
- Return('group')
|