mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 20:14:55 +08:00
* [bsp][renesas][ra4m1-ek] add a new bsp for ra4m1-ek board * [bsp][renesas][ra4m1-ek] fix can driver compile problem * [bsp][renesas][ra4m1-ek] bsp code format * [bsp][renesas][ra4m1-ek] reset file status to original generated by RASC * [bsp][renesas][ra4m1-ek] support RT-Thread Nano * [bsp][renesas][ra4m1-ek] make it mini support for GPIO && USART * [bsp][renesas][ra4m1-ek] make it compilable under the GCC compiler * [bsp][renesas][ra4m1-ek] remove component RT_USING_CPLUSPLUS * [bsp][renesas][ra4m1-ek] reduce bsp peripheral device driver
28 lines
825 B
Python
28 lines
825 B
Python
# for module compiling
|
|
import os
|
|
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = []
|
|
CPPPATH = []
|
|
list = os.listdir(cwd)
|
|
|
|
if rtconfig.PLATFORM in ['iccarm']:
|
|
print("\nThe current project does not support IAR build\n")
|
|
Return('group')
|
|
elif rtconfig.PLATFORM in ['gcc', 'armclang']:
|
|
if GetOption('target') != 'mdk5':
|
|
src = Glob('./src/*.c')
|
|
|
|
if rtconfig.PLATFORM in ['armclang']:
|
|
CPPPATH = [cwd + '/script/bsp_link/Keil']
|
|
elif rtconfig.PLATFORM in ['gcc']:
|
|
CPPPATH = [cwd + '/script/bsp_link/GCC']
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
|
for d in list:
|
|
path = os.path.join(cwd, d)
|
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
|
group = group + SConscript(os.path.join(d, 'SConscript'))
|
|
Return('group') |