aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2021-01-04 11:18:12 +0800
committerGitHub <noreply@github.com>2021-01-04 11:18:12 +0800
commite15765844cc6a225d04fc0ffee168ccfe811194b (patch)
tree2c264dd9b103488728f5edacb0c17aeb85be2265
parentc4215130b666039815f9777cebb6c7abf2e2c9c4 (diff)
parent049a23d4d8b481d520928e10bb85ea84aff74cf6 (diff)
downloadriscv-gnu-toolchain-e15765844cc6a225d04fc0ffee168ccfe811194b.zip
riscv-gnu-toolchain-e15765844cc6a225d04fc0ffee168ccfe811194b.tar.gz
riscv-gnu-toolchain-e15765844cc6a225d04fc0ffee168ccfe811194b.tar.bz2
Merge pull request #806 from ioannesKX/master
Update README.md for clear instructions on multilib
-rw-r--r--README.md14
1 files changed, 8 insertions, 6 deletions
diff --git a/README.md b/README.md
index 8119888..3233894 100644
--- a/README.md
+++ b/README.md
@@ -84,16 +84,18 @@ Supported ABIs are ilp32 (32-bit soft-float), ilp32d (32-bit hard-float),
ilp32f (32-bit with single-precision in registers and double in memory, niche
use only), lp64 lp64f lp64d (same but with 64-bit long and pointers).
-### Installation (Linux multilib)
+### Installation (Newlib/Linux multilib)
-To build the Linux cross-compiler with support for both 32-bit and
-64-bit, run the following commands:
+To build either cross-compiler with support for both 32-bit and
+64-bit, run the following command:
./configure --prefix=/opt/riscv --enable-multilib
- make linux
+
+And then either `make` or `make linux` for the Newlib or Linux cross-compiler respectively.
-The multilib compiler will have the prefix riscv64-unknown-linux-gnu-,
-but will be able to target both 32-bit and 64-bit systems.
+The multilib compiler will have the prefix riscv64-unknown-elf- or riscv64-unknown-linux-gnu-,
+but will be able to target both 32-bit and 64-bit systems. It will support
+the most common `-march`/`-mabi` options, which can be seen by using the `--print-multi-lib` flag on either cross-compiler.
### Troubleshooting Build Problems