Skip to content

Commit a108093

Browse files
committed
[bsp]feat:add ultrarisc ur-dp1000 bsp
1 parent e3d7bbb commit a108093

34 files changed

+4552
-1
lines changed

.github/ALL_BSP_COMPILE.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,13 @@
468468
"SUB_RTT_BSP": [
469469
"xuantie/smartl/e906"
470470
]
471+
},
472+
{
473+
"RTT_BSP": "ultrarisc",
474+
"RTT_TOOL_CHAIN": "riscv64-unknown-linux-musl-",
475+
"SUB_RTT_BSP": [
476+
"ultrarisc/ur_dp1000_evb"
477+
]
471478
}
472479
]
473480
}

bsp/ultrarisc/drivers/SConscript

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# RT-Thread building script for component
2+
3+
from building import *
4+
5+
cwd = GetCurrentDir()
6+
src = Glob('*.c')
7+
CPPPATH = [cwd]
8+
9+
if not GetDepend('BSP_USING_DW_SPI'):
10+
SrcRemove(src, ['drv_dw_spi.c'])
11+
12+
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
13+
14+
objs = [group]
15+
16+
list = os.listdir(cwd)
17+
18+
for item in list:
19+
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
20+
objs = objs + SConscript(os.path.join(item, 'SConscript'))
21+
22+
Return('objs')

0 commit comments

Comments
 (0)