@@ -94,9 +94,11 @@ The following Makefile targets are available to build packages:
9494- ` deb-i686 ` : build ` stgit_x.y.z_i386.deb `
9595- ` deb-x86_64 ` : build ` stgit_x.y.z_amd64.deb `
9696- ` deb-aarch64 ` : build ` stgit_x.y.z_arm64.deb `
97+ - ` deb-riscv64 ` : build ` stgit_x.y.z_riscv64.deb `
9798- ` rpm-i686 ` : build ` stgit-x.y.z-w.i686.rpm `
9899- ` rpm-x86_64 ` : build ` stgit-x.y.z-w.x86_64.rpm `
99100- ` rpm-aarch64 ` : build ` stgit-x.y.z-w.aarch64.rpm `
101+ - ` rpm-riscv64 ` : build ` stgit-x.y.z-w.riscv64.rpm `
100102
101103The generated package files are output to ` target/pkg/ ` .
102104
@@ -106,6 +108,7 @@ Rust Dependencies
106108To build these packages, rust needs to be setup for some additional targets:
107109
108110- aarch64-unknown-linux-musl
111+ - riscv64gc-unknown-linux-musl
109112- i686-unknown-linux-musl
110113- x86_64-unknown-linux-musl
111114
@@ -121,19 +124,22 @@ install`.
121124Linker Setup
122125============
123126
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.
126129
127- On Arch Linux, install ` aarch64-linux-gnu-gcc ` .
130+ On Arch Linux, install ` aarch64-linux-gnu-gcc ` and ` riscv64-linux-gnu-gcc ` .
128131
129132In Debian/Ubuntu environments, install the ` gcc-aarch64-linux-gnu `
130- package .
133+ and ` gcc-riscv64-linux-gnu ` packages .
131134
132135To configure, add the following to your ` ~/.cargo/config.toml ` file:
133136
134137``` toml
135138[target .aarch64-unknown-linux-musl ]
136139linker = " aarch64-linux-gnu-gcc"
140+
141+ [target .riscv64gc-unknown-linux-musl ]
142+ linker = " riscv64-linux-gnu-gcc"
137143```
138144
139145[ musl ] : https://musl.libc.org/
0 commit comments