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
|
2023-03-01 14:32:43 +08:00
|
|
|
if rtconfig.CPU == "virt64" :
|
2021-05-18 09:57:25 +08:00
|
|
|
group = group
|
2022-12-03 12:07:44 +08:00
|
|
|
elif rtconfig.CPU == "c906" :
|
|
|
|
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
|
2023-03-19 14:41:18 +08:00
|
|
|
if rtconfig.CPU == "c906":
|
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')
|