@@ -94,9 +94,11 @@ The following Makefile targets are available to build packages:
94
94
- ` deb-i686 ` : build ` stgit_x.y.z_i386.deb `
95
95
- ` deb-x86_64 ` : build ` stgit_x.y.z_amd64.deb `
96
96
- ` deb-aarch64 ` : build ` stgit_x.y.z_arm64.deb `
97
+ - ` deb-riscv64 ` : build ` stgit_x.y.z_riscv64.deb `
97
98
- ` rpm-i686 ` : build ` stgit-x.y.z-w.i686.rpm `
98
99
- ` rpm-x86_64 ` : build ` stgit-x.y.z-w.x86_64.rpm `
99
100
- ` rpm-aarch64 ` : build ` stgit-x.y.z-w.aarch64.rpm `
101
+ - ` rpm-riscv64 ` : build ` stgit-x.y.z-w.riscv64.rpm `
100
102
101
103
The generated package files are output to ` target/pkg/ ` .
102
104
@@ -106,6 +108,7 @@ Rust Dependencies
106
108
To build these packages, rust needs to be setup for some additional targets:
107
109
108
110
- aarch64-unknown-linux-musl
111
+ - riscv64gc-unknown-linux-musl
109
112
- i686-unknown-linux-musl
110
113
- x86_64-unknown-linux-musl
111
114
@@ -121,19 +124,22 @@ install`.
121
124
Linker Setup
122
125
============
123
126
124
- When cross-compiling, e.g. when building aarch64 targets from an x86_64
125
- host, the cross compiler linker needs to be installed and configured.
127
+ When cross-compiling, e.g. when building aarch64 or riscv64 targets from
128
+ an x86_64 host, the cross compiler linker needs to be installed and configured.
126
129
127
- On Arch Linux, install ` aarch64-linux-gnu-gcc ` .
130
+ On Arch Linux, install ` aarch64-linux-gnu-gcc ` and ` riscv64-linux-gnu-gcc ` .
128
131
129
132
In Debian/Ubuntu environments, install the ` gcc-aarch64-linux-gnu `
130
- package .
133
+ and ` gcc-riscv64-linux-gnu ` packages .
131
134
132
135
To configure, add the following to your ` ~/.cargo/config.toml ` file:
133
136
134
137
``` toml
135
138
[target .aarch64-unknown-linux-musl ]
136
139
linker = " aarch64-linux-gnu-gcc"
140
+
141
+ [target .riscv64gc-unknown-linux-musl ]
142
+ linker = " riscv64-linux-gnu-gcc"
137
143
```
138
144
139
145
[ musl ] : https://musl.libc.org/
0 commit comments