rt-thread/libcpu/risc-v/SConscript

35 lines
814 B
Python
Raw Normal View History

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
if rtconfig.CPU == "e9xx" :
group = group
elif rtconfig.CPU == "nuclei" :
group = group
elif rtconfig.CPU == "virt64" :
group = group
elif rtconfig.CPU == "ch32v1" :
2022-08-23 10:21:44 +08:00
group = group
elif rtconfig.CPU == "ch32v3" :
group = group
elif rtconfig.CPU == "hpmicro":
group = group
else :
group = group + SConscript(os.path.join('common', 'SConscript'))
2019-01-07 06:09:45 +08:00
# cpu porting code files
if rtconfig.CPU == "e9xx" :
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'))
2019-01-07 06:09:45 +08:00
Return('group')