mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 09:24:47 +00:00
Merge pull request #5702
13c0b8c
Add depends riscv 64 bit support (TheCharlatan)
This commit is contained in:
commit
1b373185aa
7 changed files with 20 additions and 1 deletions
|
@ -18,6 +18,8 @@ env:
|
||||||
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
|
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
|
||||||
- DOCKER_PACKAGES="build-essential libtool cmake autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
|
- DOCKER_PACKAGES="build-essential libtool cmake autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
|
||||||
matrix:
|
matrix:
|
||||||
|
# RISCV 64bit
|
||||||
|
- HOST=riscv64-linux-gnu PACKAGES="python3 gperf g++-riscv64-linux-gnu"
|
||||||
# ARM v7
|
# ARM v7
|
||||||
- HOST=arm-linux-gnueabihf PACKAGES="python3 gperf g++-arm-linux-gnueabihf"
|
- HOST=arm-linux-gnueabihf PACKAGES="python3 gperf g++-arm-linux-gnueabihf"
|
||||||
# ARM v8
|
# ARM v8
|
||||||
|
|
|
@ -535,6 +535,8 @@ You can also cross-compile static binaries on Linux for Windows and macOS with t
|
||||||
* Requires: `g++-arm-linux-gnueabihf`
|
* Requires: `g++-arm-linux-gnueabihf`
|
||||||
* ```make depends target=aarch64-linux-gnu``` for armv8 binaries.
|
* ```make depends target=aarch64-linux-gnu``` for armv8 binaries.
|
||||||
* Requires: `g++-aarch64-linux-gnu`
|
* Requires: `g++-aarch64-linux-gnu`
|
||||||
|
* ```make depends target=riscv64-linux-gnu``` for RISC V 64 bit binaries.
|
||||||
|
* Requires: `g++-riscv64-linux-gnu`
|
||||||
|
|
||||||
The required packages are the names for each toolchain on apt. Depending on your distro, they may have different names.
|
The required packages are the names for each toolchain on apt. Depending on your distro, they may have different names.
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ Common `host-platform-triplets` for cross compilation are:
|
||||||
- `x86_64-apple-darwin11` for MacOSX
|
- `x86_64-apple-darwin11` for MacOSX
|
||||||
- `arm-linux-gnueabihf` for Linux ARM 32 bit
|
- `arm-linux-gnueabihf` for Linux ARM 32 bit
|
||||||
- `aarch64-linux-gnu` for Linux ARM 64 bit
|
- `aarch64-linux-gnu` for Linux ARM 64 bit
|
||||||
|
- `riscv64-linux-gnu` for Linux RISCV 64 bit
|
||||||
|
|
||||||
No other options are needed, the paths are automatically configured.
|
No other options are needed, the paths are automatically configured.
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,10 @@ define $(package)_set_vars
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define $(package)_preprocess_cmds
|
||||||
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub .
|
||||||
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
$($(package)_autoconf)
|
$($(package)_autoconf)
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -40,6 +40,7 @@ $(package)_config_opts_x86_64_linux=linux-x86_64
|
||||||
$(package)_config_opts_i686_linux=linux-generic32
|
$(package)_config_opts_i686_linux=linux-generic32
|
||||||
$(package)_config_opts_arm_linux=linux-generic32
|
$(package)_config_opts_arm_linux=linux-generic32
|
||||||
$(package)_config_opts_aarch64_linux=linux-generic64
|
$(package)_config_opts_aarch64_linux=linux-generic64
|
||||||
|
$(package)_config_opts_riscv64_linux=linux-generic64
|
||||||
$(package)_config_opts_mipsel_linux=linux-generic32
|
$(package)_config_opts_mipsel_linux=linux-generic32
|
||||||
$(package)_config_opts_mips_linux=linux-generic32
|
$(package)_config_opts_mips_linux=linux-generic32
|
||||||
$(package)_config_opts_powerpc_linux=linux-generic32
|
$(package)_config_opts_powerpc_linux=linux-generic32
|
||||||
|
|
|
@ -4,13 +4,17 @@ native_packages := native_ccache native_protobuf
|
||||||
darwin_native_packages = native_biplist native_ds_store native_mac_alias
|
darwin_native_packages = native_biplist native_ds_store native_mac_alias
|
||||||
darwin_packages = sodium-darwin ncurses readline
|
darwin_packages = sodium-darwin ncurses readline
|
||||||
|
|
||||||
linux_packages = eudev ncurses readline unwind sodium
|
linux_packages = eudev ncurses readline sodium
|
||||||
qt_packages = qt
|
qt_packages = qt
|
||||||
|
|
||||||
ifeq ($(build_tests),ON)
|
ifeq ($(build_tests),ON)
|
||||||
packages += gtest
|
packages += gtest
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(host_arch),riscv64)
|
||||||
|
packages += unwind
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(host_os),mingw32)
|
ifeq ($(host_os),mingw32)
|
||||||
packages += icu4c
|
packages += icu4c
|
||||||
packages += sodium
|
packages += sodium
|
||||||
|
|
|
@ -98,6 +98,11 @@ elseif(ARCHITECTURE STREQUAL "aarch64")
|
||||||
set(BUILD_64 ON)
|
set(BUILD_64 ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ARCHITECTURE STREQUAL "riscv64")
|
||||||
|
set(NO_AES ON)
|
||||||
|
set(ARCH "rv64imafdc")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ARCHITECTURE STREQUAL "i686" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if(ARCHITECTURE STREQUAL "i686" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
SET(LINUX_32 ON)
|
SET(LINUX_32 ON)
|
||||||
SET(ARCH_ID "i386")
|
SET(ARCH_ID "i386")
|
||||||
|
|
Loading…
Reference in a new issue