Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
RISC-V GNU Toolchain
提交
e3e8e283
未验证
提交
e3e8e283
编辑于
1月 07, 2021
作者:
Kito Cheng
提交者:
GitHub
1月 07, 2021
浏览文件
Merge pull request #816 from riscv/dev-doc
Add doc for development
上级
87a6c36a
2d676e45
变更
1
Hide whitespace changes
Inline
Side-by-side
README.md
浏览文件 @
e3e8e283
...
...
@@ -180,3 +180,62 @@ To test GCC, run the following commands:
Note:
-
spike only support rv64
*
bare-metal/elf toolchain.
-
gdb simulator only support bare-metal/elf toolchain.
### Development
This section is only for developer or advanced user, or you want to build
toolchain with your own source tree.
#### Update Source Tree
`riscv-gnu-toolchain`
contain stable but not latest source for each submodule,
in case you want to using latest develoment tree, you can use following command
to upgrade all submodule.
git submodule update --remote
Or you can upgrade specific submodule only.
git submodule update --remote <component>
For example, upgrade riscv-gcc only, you can using following command:
git submodule update --remote riscv-gcc
#### How to Check Which Branch are Used for Specific submodule
The branch info has recorded in
`.gitmodules`
file, which can set or update via
`git submodule add -b`
or
`git submodule set-branch`
.
However the only way to check which branch are using is to check
`.gitmodules`
file, here is the example for
`riscv-gcc`
, it using riscv-gcc-10.2.0 branch, so
it will has a section named
`riscv-gcc`
and has a field
`branch`
is
`riscv-gcc-10.2.0`
.
```
[submodule "riscv-gcc"]
path = riscv-gcc
url = ../riscv-gcc.git
branch = riscv-gcc-10.2.0
```
#### Use Source Tree Other Than `riscv-gnu-toolchain`
`riscv-gnu-toolchain`
also support using out-of-tree source to build toolchain,
there is couple configure option to specify the source tree of each
submodule/component.
For example you have a gcc in
`$HOME/gcc`
, use
`--with-gcc-src`
can specify that:
./configure --with-gcc-src=$HOME/gcc
Here is the list of configure option for specify source tree:
--with-gcc-src
--with-binutils-src
--with-newlib-src
--with-glibc-src
--with-musl-src
--with-gdb-src
--with-linux-headers-src
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录