mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
29 lines
659 B
Python
29 lines
659 B
Python
|
# RT-Thread building script for bridge
|
||
|
|
||
|
import os
|
||
|
from building import *
|
||
|
|
||
|
Import('rtconfig')
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
group = []
|
||
|
list = os.listdir(cwd)
|
||
|
|
||
|
# add common code files
|
||
|
if rtconfig.CPU == "e9xx" :
|
||
|
group = group
|
||
|
elif rtconfig.CPU == "nuclei" :
|
||
|
group = group
|
||
|
elif rtconfig.CPU == "virt64" :
|
||
|
group = group
|
||
|
else :
|
||
|
group = group + SConscript(os.path.join(cwd, 'common', 'SConscript'))
|
||
|
|
||
|
# cpu porting code files
|
||
|
if rtconfig.CPU == "e9xx" :
|
||
|
group = group + SConscript(os.path.join(cwd, rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
|
||
|
else :
|
||
|
group = group + SConscript(os.path.join(cwd, rtconfig.CPU, 'SConscript'))
|
||
|
|
||
|
Return('group')
|