SConscript 764 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# RT-Thread building script for bridge

import os
from building import *

Import('rtconfig')

cwd   = GetCurrentDir()
group = []
list  = os.listdir(cwd)

# add common code files
13
if   rtconfig.CPU == "e9xx" :
14 15 16
    group = group
elif rtconfig.CPU == "nuclei" :
    group = group
lubi19981001's avatar
lubi19981001 已提交
17 18
elif rtconfig.CPU == "virt64" :
    group = group
B
blta 已提交
19
elif rtconfig.CPU == "ch32v1" :
L
liyangyang 已提交
20 21 22
    group = group
elif rtconfig.CPU == "ch32v3" :
    group = group
23
else :
24
    group = group + SConscript(os.path.join('common', 'SConscript'))
25 26

# cpu porting code files
27
if  rtconfig.CPU == "e9xx" :
28
    group = group + SConscript(os.path.join(rtconfig.VENDOR, rtconfig.CPU, 'SConscript'))
29
elif rtconfig.CPU in list:
30
    group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript'))
31 32

Return('group')