rt-thread-official/libcpu/risc-v/SConscript

26 lines
642 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')
common64_arch = ['virt64', 'c906']
2019-01-07 06:09:45 +08:00
cwd = GetCurrentDir()
group = []
list = os.listdir(cwd)
# add common code files
if rtconfig.CPU in common64_arch :
group += SConscript(os.path.join('common64', 'SConscript'))
else :
group += SConscript(os.path.join('common', 'SConscript'))
2019-01-07 06:09:45 +08:00
# cpu porting code files
if rtconfig.CPU == "c906":
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')