mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-12 22:29:26 +08:00
28 lines
908 B
Python
28 lines
908 B
Python
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
from gcc import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
group = []
|
|
CPPPATH = []
|
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
|
Return('group')
|
|
elif rtconfig.PLATFORM in GetGCCLikePLATFORM():
|
|
if 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',]
|
|
|
|
group = DefineGroup('rzn', src, depend = [''], CPPPATH = CPPPATH)
|
|
Return('group')
|