4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-22 22:47:33 +08:00
2024-09-23 12:57:53 +08:00

26 lines
679 B
Python

# RT-Thread building script for bridge
import os
from building import *
Import('rtconfig')
common64_arch = ['virt64', 'c906', 'c908']
cwd = GetCurrentDir()
group = []
list = os.listdir(cwd)
# add common code files
if rtconfig.CPU in common64_arch :
group += SConscript(os.path.join('common64', 'SConscript'))
else :
group += SConscript(os.path.join('common', 'SConscript'))
# cpu porting code files
if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
elif rtconfig.CPU in list:
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
Return('group')