Skip to content

Commit f42cb84

Browse files
committed
README: Change grouping of install instructions
Signed-off-by: Alistair Francis <[email protected]>
1 parent 6347ffb commit f42cb84

File tree

1 file changed

+19
-52
lines changed

1 file changed

+19
-52
lines changed

README.md

Lines changed: 19 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -37,58 +37,35 @@ Prerequisites
3737
3838
1. Cross compiler for embedded targets
3939
40-
*ARM*
41-
42-
You will need an `arm-none-eabi` toolchain for Cortex-M targets.
43-
44-
**MacOS**:
45-
```
46-
$ brew tap ARMmbed/homebrew-formulae && brew update && brew install arm-none-eabi-gcc
47-
```
48-
49-
**Ubuntu (18.04LTS or later)**:
50-
```
51-
$ sudo apt install gcc-arm-none-eabi
52-
```
53-
54-
**Arch**:
55-
```
56-
$ sudo pacman -Syu arm-none-eabi-gcc
57-
```
58-
59-
**Fedora**:
60-
```
61-
$ sudo dnf install arm-none-eabi-gcc-cs
62-
```
63-
64-
*RISC-V*
65-
66-
You will need a RISC-V toolchain that supports rv32 targets (64 bit
67-
toolchains support rv32 if compiled with multilib support).
68-
Some toolchains that can work:
69-
- riscv64-none-elf
70-
- riscv32-none-elf
71-
- riscv64-elf
72-
- riscv64-unknown-elf
73-
- riscv32-unknown-elf
74-
7540
**MacOS**:
7641
7742
```shell
43+
$ brew tap ARMmbed/homebrew-formulae && brew update && brew install arm-none-eabi-gcc
7844
$ brew tap riscv/riscv && brew update && brew install riscv-gnu-toolchain
7945
```
8046
8147
**Ubuntu (21.10 or later) or Debian (11 or later)**:
8248
8349
```shell
50+
$ sudo apt install gcc-arm-none-eabi
8451
$ sudo apt install gcc-riscv64-unknown-elf
8552
```
8653
8754
**Arch**:
55+
8856
```shell
57+
$ sudo pacman -Syu arm-none-eabi-gcc
8958
$ sudo pacman -Syu riscv64-elf-gcc
9059
```
9160
61+
**Fedora**:
62+
63+
NOTE: Fedora currently doesn't have RISC-V support
64+
65+
```shell
66+
$ sudo dnf install arm-none-eabi-gcc-cs
67+
```
68+
9269
**Other distros**:
9370
9471
If your distro doesn't provide a RISC-V toolchain you can build one yourself
@@ -100,36 +77,26 @@ Prerequisites
10077
10178
1. libc for embedded targets
10279
103-
*ARM*
104-
10580
**Ubuntu (21.10 or later) or Debian (11 or later)**:
10681
82+
Use picolibc instead of newlib
83+
10784
```shell
10885
$ sudo apt install picolibc-arm-unknown-elf libnewlib-arm-none-eabi
86+
$ sudo apt install picolibc-riscv64-unknown-elf
10987
```
11088
11189
**Arch**:
112-
```
90+
91+
```shell
11392
$ sudo pacman -Syu arm-none-eabi-newlib
93+
$ sudo pacman -Syu riscv32-elf-newlib
11494
```
11595
11696
**Fedora**:
117-
```
118-
$ sudo dnf install arm-none-eabi-newlib
119-
```
120-
121-
*RISC-V*
122-
123-
**Ubuntu (21.10 or later) or Debian (11 or later)**:
124-
125-
Use picolibc instead of newlib
12697
12798
```shell
128-
$ sudo apt install picolibc-riscv64-unknown-elf
129-
```
130-
**Arch**:
131-
```shell
132-
$ sudo pacman -Syu riscv32-elf-newlib
99+
$ sudo dnf install arm-none-eabi-newlib
133100
```
134101
135102
*newlib-nano*

0 commit comments

Comments
 (0)