Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaeljclark/musl-riscv-toolchain
riscv-linux musl gcc toolchain bootstrap scripts
https://github.com/michaeljclark/musl-riscv-toolchain
gcc musl musl-libc musl-riscv-toolchain risc-v riscv toolchain
Last synced: 3 months ago
JSON representation
riscv-linux musl gcc toolchain bootstrap scripts
- Host: GitHub
- URL: https://github.com/michaeljclark/musl-riscv-toolchain
- Owner: michaeljclark
- Created: 2017-07-17T02:01:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T15:25:22.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T01:39:22.544Z (6 months ago)
- Topics: gcc, musl, musl-libc, musl-riscv-toolchain, risc-v, riscv, toolchain
- Language: Shell
- Homepage:
- Size: 36.1 KB
- Stars: 17
- Watchers: 4
- Forks: 10
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# musl-riscv-toolchain
musl-riscv-toolchain gcc 8.1 bootstrap script
### Building and Installing
The script automatically downloads approximately 200MiB of prerequisites:
- binutils-2.31.1.tar.bz2
- cloog-0.18.4.tar.gz
- gcc-8.1.0.tar.bz2
- gmp-6.1.2.tar.bz2
- isl-0.16.1.tar.bz2
- linux-4.18.tar.xz
- mpc-1.0.3.tar.gz
- mpfr-3.1.4.tar.bz2
- musl-riscv-1.1.18-riscv-a6.tar.gzTo build and install the riscv64 toolchain run the following command:
```
sh bootstrap.sh riscv64
```To build toolchains for riscv32, riscv64, i386, x86_64, arm and aarch64:
```
for i in riscv32 riscv64 i386 x86_64 arm aarch64; do sh bootstrap.sh $i ; done
```The script installs the toolchain to the following directory:
- `/opt/riscv/musl-riscv-toolchain-8.1.0-1`
Add the toolchain to your `PATH` environment variable
```
export PATH=${PATH}:/opt/riscv/musl-riscv-toolchain-8.1.0-1/bin
```After building, the toolchain will be installed as follows:
- `/opt/riscv/musl-riscv-toolchain-8.1.0-1/`
- `bin/`
- `aarch64-linux-musl-{as,ld,gcc,g++,strip,objdump}`
- `arm-linux-musleabihf-{as,ld,gcc,g++,strip,objdump}`
- `i386-linux-musl-{as,ld,gcc,g++,strip,objdump}`
- `riscv32-linux-musl-{as,ld,gcc,g++,strip,objdump}`
- `riscv64-linux-musl-{as,ld,gcc,g++,strip,objdump}`
- `x86_64-linux-musl-{as,ld,gcc,g++,strip,objdump}`
- `aarch64-linux-musl/`
- `lib/`
- `include/`
- `arm-linux-musleabihf/`
- `lib/`
- `include/`
- `i386-linux-musl/`
- `lib/`
- `include/`
- `riscv32-linux-musl/`
- `lib/`
- `include/`
- `riscv64-linux-musl/`
- `lib/`
- `include/`
- `x86_64-linux-musl/`
- `lib/`
- `include/`