2019-01-07 06:09:45 +08:00
|
|
|
# RT-Thread building script for bridge
|
|
|
|
|
|
|
|
import os
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
|
2019-03-26 21:36:01 +08:00
|
|
|
cwd = GetCurrentDir()
|
2021-03-25 16:22:51 +08:00
|
|
|
list = os.listdir(cwd)
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
# add common code files
|
2019-03-26 21:36:01 +08:00
|
|
|
group = SConscript(os.path.join('common', 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
# cpu porting code files
|
2021-03-25 16:22:51 +08:00
|
|
|
if rtconfig.CPU in list:
|
|
|
|
group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
|
2019-01-07 06:09:45 +08:00
|
|
|
|
|
|
|
Return('group')
|