2019-01-07 06:09:45 +08:00
|
|
|
# RT-Thread building script for bridge
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
group = []
|
|
|
|
list = os.listdir(cwd)
|
|
|
|
|
|
|
|
# add common code files
|
2021-07-14 20:12:55 +08:00
|
|
|
if rtconfig.CPU == "e9xx" :
|
2020-09-11 10:11:25 +08:00
|
|
|
group = group
|
|
|
|
elif rtconfig.CPU == "nuclei" :
|
|
|
|
group = group
|
2021-05-18 09:57:25 +08:00
|
|
|
elif rtconfig.CPU == "virt64" :
|
|
|
|
group = group
|
2022-04-04 11:07:49 +08:00
|
|
|
elif rtconfig.CPU == "ch32v1" :
|
2022-08-23 10:21:44 +08:00
|
|
|
group = group
|
|
|
|
elif rtconfig.CPU == "ch32v3" :
|
|
|
|
group = group
|
2020-09-11 10:11:25 +08:00
|
|
|
else :
|
2022-03-29 22:18:05 +08:00
|
|
|
group = group + SConscript(os.path.join('common', 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
# cpu porting code files
|
2021-07-14 20:12:55 +08:00
|
|
|
if rtconfig.CPU == "e9xx" :
|
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')
|