You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-21Lines changed: 32 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,18 +17,22 @@ newlib
17
17
glibc
18
18
```
19
19
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.
22
21
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
29
34
30
-
cd /build/arc64
31
-
/repos/arc-gnu-toolchain/configure ...
35
+
./configure --with-src=/path/to/parent
32
36
```
33
37
34
38
For a 64-bit linux build, you will need the following branches:
@@ -122,17 +126,24 @@ make install
122
126
123
127
Some of parameters you can pass to the configure script:
0 commit comments