mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 08:33:32 +08:00
c802fcdcf8
WCH CH569W-R0-1v0 evt board bsp port, first version dev/test under Ubuntu 20.04 toolchain from MounRiver_Studio_Community_Linux_x64_V120 tested drivers : SysTick, gpio, gpio interrupt, uart1 (RX interrupt, TX polling) libcpu/risc-v/SConscript : group includes rtconfig.CPU only if folder exists libcpu/risc-v/common/cpuport.c/rt_hw_context_switch_interrupt() : make it RT_WEAK for customization
31 lines
718 B
Python
31 lines
718 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" :
|
|
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" :
|
|
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')
|