2019-01-07 06:09:45 +08:00
|
|
|
# RT-Thread building script for bridge
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
2024-09-20 10:17:34 +08:00
|
|
|
common64_arch = ['virt64', 'c906', 'c908']
|
2019-01-07 06:09:45 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
group = []
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
|
|
|
|
# add common code files
|
2024-09-12 11:14:12 +08:00
|
|
|
if rtconfig.CPU in common64_arch :
|
|
|
|
group += SConscript(os.path.join('common64', 'SConscript'))
|
2020-09-11 10:11:25 +08:00
|
|
|
else :
|
2024-09-12 11:14:12 +08:00
|
|
|
group += SConscript(os.path.join('common', 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
# cpu porting code files
|
2024-09-18 11:19:48 +08:00
|
|
|
if 'VENDOR' in vars(rtconfig) and rtconfig.VENDOR != '':
|
2022-03-29 22:18:05 +08:00
|
|
|
group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
|
2022-07-30 14:10:51 +08:00
|
|
|
elif rtconfig.CPU in list:
|
2022-03-29 22:18:05 +08:00
|
|
|
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
Return('group')
|