Skip to content

Commit 5c568f0

Browse files
BernardXiongRbb666
authored andcommitted
[Tools] Update images
1 parent a65efe6 commit 5c568f0

File tree

7 files changed

+4
-126
lines changed

7 files changed

+4
-126
lines changed

tools/docs/README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,33 +69,7 @@ pkgs --list # 列出已安装包
6969

7070
## 构建系统架构图
7171

72-
```
73-
┌─────────────────────────────────────┐
74-
│ 用户命令 (scons) │
75-
└──────────────┬──────────────────────┘
76-
77-
┌──────────────▼──────────────────────┐
78-
│ SConstruct (主脚本) │
79-
│ ┌─────────────────────┐ │
80-
│ │ PrepareBuilding() │ │
81-
│ │ 环境初始化 │ │
82-
│ └──────────┬──────────┘ │
83-
└────────────────┼───────────────────┘
84-
85-
┌────────────────▼────────────────────┐
86-
│ building.py │
87-
│ ┌──────────┬──────────┐ │
88-
│ │ 组件收集 │ 依赖处理 │ │
89-
│ └──────────┴──────────┘ │
90-
└─────────────────────────────────────┘
91-
92-
┌────────┴────────┐
93-
│ │
94-
┌───────▼──────┐ ┌────────▼────────┐
95-
│ SConscript │ │ rtconfig.h │
96-
│ 组件脚本 │ │ 功能配置 │
97-
└──────────────┘ └─────────────────┘
98-
```
72+
![arch](./readme_arch.drawio.png)
9973

10074
## 主要特性
10175

tools/docs/guide_arch.drawio.png

45.1 KB
Loading

tools/docs/process.drawio.png

57.2 KB
Loading

tools/docs/readme_arch.drawio.png

33.9 KB
Loading

tools/docs/tech_arch.drawio.png

49.6 KB
Loading

tools/docs/构建系统使用指南.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,7 @@ RT-Thread使用基于SCons的构建系统,提供了统一的跨平台构建体
2323

2424
### 系统架构图
2525

26-
```
27-
┌─────────────────────────────────────────────────────────────┐
28-
│ 用户命令 │
29-
│ (scons, scons --target=xxx) │
30-
└─────────────────────┬───────────────────────────────────────┘
31-
32-
┌─────────────────────▼───────────────────────────────────────┐
33-
│ SConstruct │
34-
│ (BSP根目录构建脚本) │
35-
└─────────────────────┬───────────────────────────────────────┘
36-
37-
┌─────────────────────▼───────────────────────────────────────┐
38-
│ building.py │
39-
│ (核心构建引擎和函数库) │
40-
├─────────────────────┬───────────────────────────────────────┤
41-
│ PrepareBuilding() │ DefineGroup() │ DoBuilding() │
42-
│ 环境初始化 │ 组件定义 │ 执行构建 │
43-
└─────────────────────┴─────────┬─────────────────────────────┘
44-
45-
┌───────────────────────┼───────────────────────┐
46-
│ │ │
47-
┌───────▼────────┐ ┌────────▼────────┐ ┌────────▼────────┐
48-
│ SConscript │ │ rtconfig.py │ │ rtconfig.h │
49-
│ (组件脚本) │ │ (工具链配置) │ │ (功能配置) │
50-
└────────────────┘ └─────────────────┘ └─────────────────┘
51-
```
26+
![arch](./guide_arch.drawio.png)
5227

5328
## 快速开始
5429

tools/docs/构建系统技术原理.md

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,7 @@
1515

1616
### 整体架构图
1717

18-
```
19-
┌────────────────────────────────────────────────────────────────────┐
20-
│ 用户接口层 │
21-
│ ┌─────────────┐ ┌──────────────┐ ┌─────────────┐ ┌──────────┐│
22-
│ │ 命令行接口 │ │ menuconfig │ │ 环境变量 │ │ 配置文件 ││
23-
│ │ (scons) │ │ (Kconfig) │ │ (RTT_xxx) │ │ (.config)││
24-
│ └──────┬──────┘ └──────┬───────┘ └──────┬──────┘ └─────┬────┘│
25-
└─────────┼─────────────────┼──────────────────┼───────────────┼─────┘
26-
│ │ │ │
27-
┌─────────▼─────────────────▼──────────────────▼───────────────▼─────┐
28-
│ 构建引擎层 │
29-
│ ┌─────────────────────────────────────────────────────────────┐ │
30-
│ │ building.py │ │
31-
│ ├─────────────┬───────────────┬─────────────┬────────────────┤ │
32-
│ │ 环境准备 │ 组件收集 │ 依赖处理 │ 构建执行 │ │
33-
│ │ Prepare │ DefineGroup │ GetDepend │ DoBuilding │ │
34-
│ └─────────────┴───────────────┴─────────────┴────────────────┘ │
35-
└────────────────────────────────────────────────────────────────────┘
36-
│ │ │ │
37-
┌─────────▼─────────────────▼──────────────────▼───────────────▼─────┐
38-
│ 工具支撑层 │
39-
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌─────────┐ ┌──────┐│
40-
│ │ utils.py │ │options.py│ │package.py│ │mkdist.py│ │预处理││
41-
│ │ 工具函数 │ │命令选项 │ │包管理 │ │分发打包 │ │器 ││
42-
│ └──────────┘ └──────────┘ └──────────┘ └─────────┘ └──────┘│
43-
└────────────────────────────────────────────────────────────────────┘
44-
│ │ │ │
45-
┌─────────▼─────────────────▼──────────────────▼───────────────▼─────┐
46-
│ 目标生成器层 │
47-
│ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────────┐ │
48-
│ │keil.py │ │iar.py │ │gcc.py │ │vsc.py │ │cmake.py等 │ │
49-
│ └────────┘ └────────┘ └────────┘ └────────┘ └────────────┘ │
50-
└────────────────────────────────────────────────────────────────────┘
51-
```
18+
![arch](./tech_arch.drawio.png)
5219

5320
### 设计原则
5421

@@ -598,45 +565,7 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env):
598565

599566
### 完整构建流程图
600567

601-
```
602-
┌──────────────┐
603-
│ 用户输入 │
604-
│ scons │
605-
└──────┬───────┘
606-
607-
┌──────▼───────┐
608-
│ SConstruct │ ← 读取rtconfig.py
609-
│ 主脚本 │ ← 调用PrepareBuilding
610-
└──────┬───────┘
611-
612-
┌──────▼───────┐
613-
│ 环境初始化 │
614-
│ ·设置路径 │
615-
│ ·检测工具链 │
616-
│ ·解析配置 │
617-
└──────┬───────┘
618-
619-
┌──────▼───────┐
620-
│ 递归处理 │
621-
│ SConscript │ ← 调用DefineGroup
622-
│ ·收集源文件 │ ← 检查依赖GetDepend
623-
│ ·设置参数 │
624-
└──────┬───────┘
625-
626-
┌──────▼───────┐
627-
│ 构建执行 │
628-
│ DoBuilding │
629-
│ ·合并对象 │
630-
│ ·链接程序 │
631-
└──────┬───────┘
632-
633-
┌──────▼───────┐
634-
│ 后处理 │
635-
│ ·生成bin文件 │
636-
│ ·显示大小 │
637-
│ ·自定义动作 │
638-
└──────────────┘
639-
```
568+
![process](./process.drawio.png)
640569

641570
### 依赖解析流程
642571

0 commit comments

Comments
 (0)