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
To build device software you need a baremetal RV32IMC compiler toolchain.
159
+
To build device software you need a baremetal RISC-V toolchain.
160
160
We recommend using a prebuilt toolchain provided by lowRISC.
161
-
Alternatively, you can build your own.
162
-
Whichever option you choose, we recommend installing the toolchain to `/tools/riscv`.
161
+
The prebuilt toolchains contain both GCC and Clang, targeting RISC-V.
162
+
By default the OpenTitan device software is built with Clang.
163
163
164
-
#### Option 1 (recommended): Use the lowRISC-provided prebuilt toolchain
165
-
166
-
lowRISC provides a prebuilt toolchain for the OpenTitan project.
167
-
This toolchain contains both GCC and Clang, targeting RISC-V.
168
-
By default the device software is built with Clang.
169
-
We recommend using the `util/get-toolchain.py` tool to download and install the latest version of this toolchain.
164
+
We recommend using the `util/get-toolchain.py` tool to download and install the latest version of this toolchain, and that you install the toolchain to the default path, `/tools/riscv`.
170
165
171
166
```cmd
172
167
$ cd $REPO_TOP
@@ -175,52 +170,7 @@ $ ./util/get-toolchain.py
175
170
176
171
This tool will automatically adjust the toolchain configuration if you override the installation directory (by using the `--install-dir` option).
177
172
It also provides the ability to perform a staged installation (by supplying a `--dest-dir` option), if the toolchain needs to be unpacked first at a temporary staging directory, before it can be moved to the final installation directory.
178
-
Alternatively, manually download the file starting with `lowrisc-toolchain-rv32imc-` from [GitHub releases](https://github.com/lowRISC/lowrisc-toolchains/releases/latest) and unpack it to the desired installation directory.
179
-
180
-
#### Option 2: Compile your own GCC toolchain
181
-
182
-
1. Install all build prerequisites listed [in the documentation](https://github.com/riscv/riscv-gnu-toolchain/#prerequisites).
183
-
184
-
2. Build the toolchain (this should be done outside the `$REPO_TOP` directory):
You will need to pass the path to this file to `./meson_init.sh` using the `-t FILE` option.
223
-
173
+
Alternatively, manually download the file starting with `lowrisc-toolchain-rv32imcb-` from [GitHub releases](https://github.com/lowRISC/lowrisc-toolchains/releases/latest) and unpack it to the desired installation directory.
0 commit comments