Files
rt-thread/bsp/renesas/ra4m1-ek/SConscript
下里巴人 bc2fca59cf [bsp][renesas][ra4m1-ek] add a new bsp for ra4m1-ek board (#10755)
* [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
2025-10-15 09:49:37 +08:00

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')