Files
luban-lite/kernel/rt-thread/libcpu/risc-v/SConscript
刘可亮 3e10f578d3 v1.2.2
2025-10-21 13:59:50 +08:00

31 lines
820 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" or rtconfig.CPU == "c906" or rtconfig.CPU == "c907":
group = group
elif rtconfig.CPU == "nuclei" :
group = group
elif rtconfig.CPU == "virt64" :
group = group
elif rtconfig.CPU == "ch32v1" :
group = group
else :
group = group + SConscript(os.path.join('common', 'SConscript'))
# cpu porting code files
if rtconfig.CPU == "e9xx" or rtconfig.CPU == "c906" or rtconfig.CPU == "c907":
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'))
Return('group')