Skip to content

Commit

Permalink
Small updates to the out-of-tree sources section
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyMurphyTM1234 authored and cmuellner committed Oct 9, 2024
1 parent 31a8195 commit 57e6919
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,17 +431,20 @@ it will has a section named `gcc` and has a field `branch` is

#### 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
`riscv-gnu-toolchain` also supports using out-of-tree source to build the toolchain.
There are several configure options for specifying the source tree of each
submodule/component.

For example you have a gcc in `$HOME/gcc`, use `--with-gcc-src` can specify that:
* https://github.com/riscv-collab/riscv-gnu-toolchain/blob/795267df36fcf1269f2bd596ac42e0e91ad9cfd3/configure#L1426-L1444

./configure --with-gcc-src=$HOME/gcc
For example, if you have GCC sources in `$HOME/gcc`, use `--with-gcc-src` to build the toolchain using those sources:

Here is the list of configure option for specify source tree:
./configure ... --with-gcc-src=$HOME/gcc

Here is the list of configure options for specifying alternative sources for the various submodules/components:

--with-binutils-src
--with-dejagnu-src
--with-gcc-src
--with-gdb-src
--with-glibc-src
Expand All @@ -452,6 +455,7 @@ Here is the list of configure option for specify source tree:
--with-pk-src
--with-qemu-src
--with-spike-src
--with-uclibc-src

#### Build host GCC to check for compiler warnings

Expand Down

0 comments on commit 57e6919

Please sign in to comment.