2023-08-30 16:21:18 +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
|
2023-11-09 20:19:51 +08:00
|
|
|
if rtconfig.CPU == "e8xx" or rtconfig.CPU == "e802" :
|
|
|
|
|
group = group
|
|
|
|
|
else :
|
|
|
|
|
group = group + SConscript(os.path.join('common', 'SConscript'))
|
2023-08-30 16:21:18 +08:00
|
|
|
|
|
|
|
|
# cpu porting code files
|
2023-11-09 20:19:51 +08:00
|
|
|
if rtconfig.CPU == "e8xx" or rtconfig.CPU == "e802" :
|
|
|
|
|
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'))
|
2023-08-30 16:21:18 +08:00
|
|
|
|
|
|
|
|
Return('group')
|