Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PHPmihuan
rt-thread
提交
ec060312
R
rt-thread
项目概览
PHPmihuan
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
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,发现更多精彩内容 >>
提交
ec060312
编写于
12月 11, 2020
作者:
G
greedyhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bluetrum] add --dist
上级
51bba95e
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
45 addition
and
4 deletion
+45
-4
bsp/bluetrum/ab32vg1-ab-prougen/.gitignore
bsp/bluetrum/ab32vg1-ab-prougen/.gitignore
+1
-0
bsp/bluetrum/ab32vg1-ab-prougen/README.md
bsp/bluetrum/ab32vg1-ab-prougen/README.md
+1
-1
bsp/bluetrum/ab32vg1-ab-prougen/SConstruct
bsp/bluetrum/ab32vg1-ab-prougen/SConstruct
+1
-1
bsp/bluetrum/ab32vg1-ab-prougen/cconfig.h
bsp/bluetrum/ab32vg1-ab-prougen/cconfig.h
+10
-1
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
+8
-1
bsp/bluetrum/libcpu/cpu/SConscript
bsp/bluetrum/libcpu/cpu/SConscript
+0
-0
bsp/bluetrum/libcpu/cpu/context_gcc.S
bsp/bluetrum/libcpu/cpu/context_gcc.S
+0
-0
bsp/bluetrum/libcpu/cpu/cpuport.c
bsp/bluetrum/libcpu/cpu/cpuport.c
+0
-0
bsp/bluetrum/libcpu/cpu/interrupt.c
bsp/bluetrum/libcpu/cpu/interrupt.c
+0
-0
bsp/bluetrum/tools/sdk_dist.py
bsp/bluetrum/tools/sdk_dist.py
+24
-0
未找到文件。
bsp/bluetrum/ab32vg1-ab-prougen/.gitignore
浏览文件 @
ec060312
...
...
@@ -7,3 +7,4 @@
*.old
build
dist
bsp/bluetrum/ab32vg1-ab-prougen/README.md
浏览文件 @
ec060312
...
...
@@ -102,7 +102,7 @@ msh >
## 注意事项
目前的
`cconfig.h`
的生成脚本对 riscv 的工具链识别有问题
,可能需要在
`cconfig.h`
中手动添加以下配置
编译报错的时候,如果出现重复定义的报错
,可能需要在
`cconfig.h`
中手动添加以下配置
```
#define HAVE_SIGEVENT 1
...
...
bsp/bluetrum/ab32vg1-ab-prougen/SConstruct
浏览文件 @
ec060312
...
...
@@ -55,7 +55,7 @@ objs.extend(SConscript(os.path.join(libraries_path_prefix, bsp_library_type, 'SC
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'hal_drivers'
,
'SConscript'
)))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libcpu_path_prefix
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libcpu_path_prefix
,
'
cpu'
,
'
SConscript'
)))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/bluetrum/ab32vg1-ab-prougen/cconfig.h
浏览文件 @
ec060312
...
...
@@ -3,10 +3,19 @@
/* Automatically generated file; DO NOT EDIT. */
/* compiler configure file for RT-Thread in GCC*/
#define HAVE_NEWLIB_H 1
#define LIBC_VERSION "newlib 3.2.0"
#define STDC "1989"
#define HAVE_SYS_SIGNAL_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_PTHREAD_H 1
#define HAVE_FDSET 1
#define HAVE_SIGACTION 1
#define HAVE_SIGEVENT 1
#define HAVE_SIGINFO 1
#define HAVE_SIGVAL 1
#define GCC_VERSION_STR "10.1.0"
#define STDC "2011"
#endif
bsp/bluetrum/ab32vg1-ab-prougen/rtconfig.py
浏览文件 @
ec060312
...
...
@@ -57,4 +57,11 @@ 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
'
\ No newline at end of file
POST_ACTION
+=
'./riscv32-elf-xmaker -b rtthread.xm
\n
'
def
dist_handle
(
BSP_ROOT
,
dist_dir
):
import
sys
cwd_path
=
os
.
getcwd
()
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
BSP_ROOT
),
'tools'
))
from
sdk_dist
import
dist_do_building
dist_do_building
(
BSP_ROOT
,
dist_dir
)
bsp/bluetrum/libcpu/SConscript
→
bsp/bluetrum/libcpu/
cpu/
SConscript
浏览文件 @
ec060312
文件已移动
bsp/bluetrum/libcpu/context_gcc.S
→
bsp/bluetrum/libcpu/c
pu/c
ontext_gcc.S
浏览文件 @
ec060312
文件已移动
bsp/bluetrum/libcpu/cpuport.c
→
bsp/bluetrum/libcpu/cpu
/cpu
port.c
浏览文件 @
ec060312
文件已移动
bsp/bluetrum/libcpu/interrupt.c
→
bsp/bluetrum/libcpu/
cpu/
interrupt.c
浏览文件 @
ec060312
文件已移动
bsp/bluetrum/tools/sdk_dist.py
0 → 100644
浏览文件 @
ec060312
import
os
import
sys
import
shutil
cwd_path
=
os
.
getcwd
()
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
cwd_path
),
'rt-thread'
,
'tools'
))
# BSP dist function
def
dist_do_building
(
BSP_ROOT
,
dist_dir
):
from
mkdist
import
bsp_copy_files
import
rtconfig
library_dir
=
os
.
path
.
join
(
dist_dir
,
'libraries'
)
print
(
"=> copy bluetrum bsp library"
)
library_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
BSP_ROOT
),
'libraries'
)
library_dir
=
os
.
path
.
join
(
dist_dir
,
'libraries'
)
bsp_copy_files
(
os
.
path
.
join
(
library_path
,
rtconfig
.
BSP_LIBRARY_TYPE
),
os
.
path
.
join
(
library_dir
,
rtconfig
.
BSP_LIBRARY_TYPE
))
print
(
"=> copy bsp drivers"
)
bsp_copy_files
(
os
.
path
.
join
(
library_path
,
'hal_drivers'
),
os
.
path
.
join
(
library_dir
,
'hal_drivers'
))
# shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))
print
(
"=> copy libcpu"
)
bsp_copy_files
(
os
.
path
.
join
(
os
.
path
.
dirname
(
BSP_ROOT
),
'libcpu'
),
os
.
path
.
join
(
dist_dir
,
'libcpu'
))
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录