Skip to content

Commit

Permalink
Merge pull request #1235 from amitch1999/master
Browse files Browse the repository at this point in the history
changed riscv-gcc references to gcc in README
  • Loading branch information
kito-cheng authored Apr 20, 2023
2 parents 05bf073 + 2ca32c0 commit 016637c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,25 +263,25 @@ Or you can upgrade specific submodule only.

git submodule update --remote <component>

For example, upgrade riscv-gcc only, you can using following command:
For example, upgrade gcc only, you can using following command:

git submodule update --remote riscv-gcc
git submodule update --remote 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`.
file, here is the example for `gcc`, it's using releases/gcc-12 branch, so
it will has a section named `gcc` and has a field `branch` is
`releases/gcc-12`.

```
[submodule "riscv-gcc"]
path = riscv-gcc
url = ../riscv-gcc.git
branch = riscv-gcc-10.2.0
[submodule "gcc"]
path = gcc
url = ../gcc.git
branch = releases/gcc-12
```

#### Use Source Tree Other Than `riscv-gnu-toolchain`
Expand Down

0 comments on commit 016637c

Please sign in to comment.