Skip to content

Commit 359e2e3

Browse files
committed
depends: Add RISC-V support
1 parent d96bdd7 commit 359e2e3

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

depends/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ i686*
88
mips*
99
arm*
1010
aarch64*
11+
riscv32*
12+
riscv64*

depends/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ $(host_prefix)/share/config.site: check-packages
167167
check-packages: check-sources
168168

169169
clean-all: clean
170-
@rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64*
170+
@rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* riscv32* riscv64*
171171

172172
clean:
173173
@rm -rf $(WORK_PATH) $(BASE_CACHE) $(BUILD)

depends/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Common `host-platform-triplets` for cross compilation are:
2525
- `x86_64-apple-darwin11` for macOS
2626
- `arm-linux-gnueabihf` for Linux ARM 32 bit
2727
- `aarch64-linux-gnu` for Linux ARM 64 bit
28+
- `riscv32-linux-gnu` for Linux RISC-V 32 bit
29+
- `riscv64-linux-gnu` for Linux RISC-V 64 bit
2830

2931
No other options are needed, the paths are automatically configured.
3032

@@ -43,6 +45,9 @@ For linux (including i386, ARM) cross compilation:
4345

4446
sudo apt-get install curl g++-aarch64-linux-gnu g++-4.8-aarch64-linux-gnu gcc-4.8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-4.8-multilib gcc-4.8-multilib binutils-gold bsdmainutils
4547

48+
For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit):
49+
50+
sudo apt-get install curl g++-riscv64-linux-gnu binutils-riscv64-linux-gnu
4651

4752
Dependency Options:
4853
The following can be set when running make: make FOO=bar

depends/packages/openssl.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ $(package)_config_opts_aarch64_linux=linux-generic64
5252
$(package)_config_opts_mipsel_linux=linux-generic32
5353
$(package)_config_opts_mips_linux=linux-generic32
5454
$(package)_config_opts_powerpc_linux=linux-generic32
55+
$(package)_config_opts_riscv32_linux=linux-generic32
56+
$(package)_config_opts_riscv64_linux=linux-generic64
5557
$(package)_config_opts_x86_64_darwin=darwin64-x86_64-cc
5658
$(package)_config_opts_x86_64_mingw32=mingw64
5759
$(package)_config_opts_i686_mingw32=mingw

0 commit comments

Comments
 (0)