Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
791ec329
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
791ec329
编写于
10月 09, 2021
作者:
L
liukangcc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[update] add riscv toolchain for ci.
上级
50433a51
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
26 addition
and
5 deletion
+26
-5
.github/workflows/action.yml
.github/workflows/action.yml
+18
-1
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
+6
-2
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
+2
-2
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a
+0
-0
未找到文件。
.github/workflows/action.yml
浏览文件 @
791ec329
...
...
@@ -37,6 +37,7 @@ jobs:
-
{
RTT_BSP
:
"
allwinner_tina"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
efm32"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
gd32e230k-start"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
gd32vf103v-eval"
,
RTT_TOOL_CHAIN
:
"
sourcery-riscv-none-embed"
}
-
{
RTT_BSP
:
"
gd32303e-eval"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
gd32450z-eval"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
imx6sx/cortex-a9"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
...
...
@@ -138,7 +139,7 @@ jobs:
-
{
RTT_BSP
:
"
raspberry-pi/raspi4-32"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
hc32l196"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
tae32f5300"
,
RTT_TOOL_CHAIN
:
"
sourcery-arm"
}
-
{
RTT_BSP
:
"
bluetrum/ab32vg1-ab-prougen"
,
RTT_TOOL_CHAIN
:
"
sourcery-riscv"
}
-
{
RTT_BSP
:
"
bluetrum/ab32vg1-ab-prougen"
,
RTT_TOOL_CHAIN
:
"
sourcery-riscv
64-unknown-elf
"
}
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set up Python
...
...
@@ -172,6 +173,22 @@ jobs:
/opt/mips-2016.05/bin/mips-sde-elf-gcc --version
echo "RTT_EXEC_PATH=/opt/mips-2016.05/bin" >> $GITHUB_ENV
-
name
:
Install Riscv64-unknown-elf ToolChains
if
:
${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv64-unknown-elf' && success() }}
run
:
|
wget -q https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
sudo tar zxvf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz -C /opt
/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc --version
echo "RTT_EXEC_PATH=/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin" >> $GITHUB_ENV
-
name
:
Install Riscv-none-embed ToolChains
if
:
${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv-none-embed' && success() }}
run
:
|
wget -q https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/download/v8.3.0-2.3/xpack-riscv-none-embed-gcc-8.3.0-2.3-linux-x64.tar.gz
sudo tar zxvf xpack-riscv-none-embed-gcc-8.3.0-2.3-linux-x64.tar.gz -C /opt
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
-
name
:
Bsp Scons Compile
if
:
${{ success() }}
shell
:
bash
...
...
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
浏览文件 @
791ec329
import
os
import
platform
# toolchains options
ARCH
=
'risc-v'
...
...
@@ -57,8 +59,10 @@ if PLATFORM == 'gcc':
DUMP_ACTION
=
OBJDUMP
+
' -D -S $TARGET > rtt.asm
\n
'
POST_ACTION
=
OBJCPY
+
' -O binary $TARGET rtthread.bin
\n
'
+
SIZE
+
' $TARGET
\n
'
POST_ACTION
+=
'./riscv32-elf-xmaker -b rtthread.xm
\n
'
POST_ACTION
+=
'./riscv32-elf-xmaker -b download.xm
\n
'
if
"Windows"
in
platform
.
platform
():
POST_ACTION
+=
'./riscv32-elf-xmaker -b rtthread.xm
\n
'
POST_ACTION
+=
'./riscv32-elf-xmaker -b download.xm
\n
'
def
dist_handle
(
BSP_ROOT
,
dist_dir
):
import
sys
...
...
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript
浏览文件 @
791ec329
...
...
@@ -48,8 +48,8 @@ ASFLAGS = ""
CPPDEFINES
=
[]
LOCAL_CPPDEFINES
=
[]
LIBS
=
[]
LIBPATH
=
[]
LIBS
=
[
'hal'
]
LIBPATH
=
[
CWD
]
LINKFLAGS
=
""
...
...
bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/libhal.a
0 → 100644
浏览文件 @
791ec329
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录