Skip to content

Commit c1660cf

Browse files
committed
Update README.md
Update README.md accordingly to the new implementation for specifying the source path directory. Signed-off-by: Luis Silva <[email protected]>
1 parent e9ed118 commit c1660cf

File tree

1 file changed

+32
-21
lines changed

1 file changed

+32
-21
lines changed

README.md

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@ newlib
1717
glibc
1818
```
1919

20-
If they do not exist, it will clone them. You can link your source directories
21-
from other palces as well:
20+
If they do not exist, it will clone them.
2221

23-
```sh
24-
cd /repos/arc-gnu-toolchain
25-
ln -s /repos/tools/binutils binutils-gdb
26-
ln -s /repos/tools/gcc gcc
27-
ln -s /repos/tools/newlib newlib
28-
ln -s /repos/tools/glibc glibc
22+
The `arc-gnu-toolchain` also provides the capability to build the toolchain using source code located outside of the main repository. There are specific configuration options available to define the source directory for each component or for a parent directory.
23+
24+
As an example, if you have an external GCC source, you can use the `--with-gcc-src` option to specify it:
25+
26+
```bash
27+
28+
./configure --with-gcc-src=/path/to/gcc
29+
```
30+
31+
Similarly, if you have an external parent directory that encompasses all the sources, you can use the `--with-src` option to inicate its location:
32+
33+
```bash
2934

30-
cd /build/arc64
31-
/repos/arc-gnu-toolchain/configure ...
35+
./configure --with-src=/path/to/parent
3236
```
3337

3438
For a 64-bit linux build, you will need the following branches:
@@ -122,17 +126,24 @@ make install
122126

123127
Some of parameters you can pass to the configure script:
124128

125-
| parameter | default | values |
126-
|---------------------|---------|---------------------------------------------------------------------------------|
127-
| --target | | arc64, arc32, arc |
128-
| --prefix | | any path string for installation |
129-
| --enable-linux | no | yes, no (--disable-linux) |
130-
| --enable-multilib | no | yes, no (--disable-multilib) |
131-
| --enable-qemu | no | yes, no (--disable-qemu) |
132-
| --enable-debug-info | no | yes, no (--disable-debug-info) |
133-
| --with-fpu | none | none, fpus, fpud |
134-
| --with-cpu | none | none, hs6x, hs68, hs5x, hs58, archs, (more at binutils/include/elf/arc-cpu.def) |
135-
| --with-sim | qemu | qemu, nsim |
129+
| parameter | default | values |
130+
|---------------------|-------------------|---------------------------------------------------------------------------------|
131+
| --target | | arc64, arc32, arc |
132+
| --prefix | | any path string for installation |
133+
| --enable-linux | no | yes, no (--disable-linux) |
134+
| --enable-multilib | no | yes, no (--disable-multilib) |
135+
| --enable-qemu | no | yes, no (--disable-qemu) |
136+
| --enable-debug-info | no | yes, no (--disable-debug-info) |
137+
| --with-fpu | none | none, fpus, fpud |
138+
| --with-cpu | none | none, hs6x, hs68, hs5x, hs58, archs, (more at binutils/include/elf/arc-cpu.def) |
139+
| --with-sim | qemu | qemu, nsim |
140+
| --with-src | arc-gnu-toolchain | /path/to/parent |
141+
| --with-binutils-src | ./binutils-gdb | /path/to/binutils-gdb |
142+
| --with-newlib-src | ./newlib | /path/to/newlib |
143+
| --with-gcc-src | ./gcc | /path/to/gcc |
144+
| --with-glibc-src | ./glibc | /path/to/glibc |
145+
| --with-linux-src | ./linux | /path/to/linux |
146+
| --with-qemu-src | ./qemu | /path/to/qemu |
136147

137148
### Advanced Options
138149

0 commit comments

Comments
 (0)