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
|
2020-09-11 10:11:25 +08:00
|
|
|
else :
|
|
|
|
group = group + SConscript(os.path.join(cwd, '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" :
|
2020-09-11 10:11:25 +08:00
|
|
|
group = group + SConscript(os.path.join(cwd, rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
|
|
|
|
else :
|
|
|
|
group = group + SConscript(os.path.join(cwd, rtconfig.CPU, 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
Return('group')
|