summaryrefslogtreecommitdiff
path: root/libcpu/risc-v/SConscript
blob: 41549d03ee4d62219c4eb41a89594b568ecc2de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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 == "virt64" :
    group = group
elif rtconfig.CPU == "c906" :
    group = group
else :
    group = group + SConscript(os.path.join('common', 'SConscript'))

# 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'))

Return('group')