From 989fd539d5bf590c5f6070ee2a4a9e2d3018df2c Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 23 Aug 2018 07:27:36 +0000 Subject: depends: Support for 64-bit POWER targets --- depends/.gitignore | 1 + depends/Makefile | 2 +- depends/README.md | 6 ++++++ depends/packages/qt.mk | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) (limited to 'depends') diff --git a/depends/.gitignore b/depends/.gitignore index 72734102c5..b91e31c91d 100644 --- a/depends/.gitignore +++ b/depends/.gitignore @@ -8,5 +8,6 @@ i686* mips* arm* aarch64* +powerpc* riscv32* riscv64* diff --git a/depends/Makefile b/depends/Makefile index cec99777ff..4784207191 100644 --- a/depends/Makefile +++ b/depends/Makefile @@ -186,7 +186,7 @@ $(host_prefix)/share/config.site: check-packages check-packages: check-sources clean-all: clean - @rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* riscv32* riscv64* + @rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* powerpc* riscv32* riscv64* clean: @rm -rf $(WORK_PATH) $(BASE_CACHE) $(BUILD) diff --git a/depends/README.md b/depends/README.md index b56302b6c7..8f915aef36 100644 --- a/depends/README.md +++ b/depends/README.md @@ -28,6 +28,8 @@ Common `host-platform-triplets` for cross compilation are: - `x86_64-apple-darwin16` for macOS - `arm-linux-gnueabihf` for Linux ARM 32 bit - `aarch64-linux-gnu` for Linux ARM 64 bit +- `powerpc64-linux-gnu` for Linux POWER 64-bit (big endian) +- `powerpc64le-linux-gnu` for Linux POWER 64-bit (little endian) - `riscv32-linux-gnu` for Linux RISC-V 32 bit - `riscv64-linux-gnu` for Linux RISC-V 64 bit - `armv7a-linux-android` for Android ARM 32 bit @@ -61,6 +63,10 @@ For linux AARCH64 cross compilation: sudo apt-get install g++-aarch64-linux-gnu binutils-aarch64-linux-gnu +For linux POWER 64-bit cross compilation (there are no packages for 32-bit): + + sudo apt-get install g++-powerpc64-linux-gnu binutils-powerpc64-linux-gnu g++-powerpc64le-linux-gnu binutils-powerpc64le-linux-gnu + For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit): sudo apt-get install g++-riscv64-linux-gnu binutils-riscv64-linux-gnu diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index c9ffc1036c..6f7d630f4c 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -128,6 +128,8 @@ $(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux $(package)_config_opts_i686_linux = -xplatform linux-g++-32 $(package)_config_opts_x86_64_linux = -xplatform linux-g++-64 $(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++ +$(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ +$(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_mingw32 = -no-opengl -- cgit v1.2.3 From 11113247c323c5b98debcb512fb9db9fe5a8e7cf Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 5 Dec 2019 12:15:48 -0500 Subject: depends: Support for S390X targets --- depends/.gitignore | 1 + depends/Makefile | 2 +- depends/README.md | 9 +++++++-- depends/packages/qt.mk | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'depends') diff --git a/depends/.gitignore b/depends/.gitignore index b91e31c91d..19c506ce54 100644 --- a/depends/.gitignore +++ b/depends/.gitignore @@ -11,3 +11,4 @@ aarch64* powerpc* riscv32* riscv64* +s390x* diff --git a/depends/Makefile b/depends/Makefile index 4784207191..5b0b0d9688 100644 --- a/depends/Makefile +++ b/depends/Makefile @@ -186,7 +186,7 @@ $(host_prefix)/share/config.site: check-packages check-packages: check-sources clean-all: clean - @rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* powerpc* riscv32* riscv64* + @rm -rf $(SOURCES_PATH) x86_64* i686* mips* arm* aarch64* powerpc* riscv32* riscv64* s390x* clean: @rm -rf $(WORK_PATH) $(BASE_CACHE) $(BUILD) diff --git a/depends/README.md b/depends/README.md index 8f915aef36..0449d295fe 100644 --- a/depends/README.md +++ b/depends/README.md @@ -12,13 +12,13 @@ For example: make HOST=x86_64-w64-mingw32 -j4 -**Bitcoin's configure script by default will ignore the depends output.** In +**Bitcoin Core's configure script by default will ignore the depends output.** In order for it to pick up libraries, tools, and settings from the depends build, you must point it at the appropriate `--prefix` directory generated by the build. In the above example, a prefix dir named x86_64-w64-mingw32 will be created. To use it for Bitcoin: - ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 + ./configure --prefix=$PWD/depends/x86_64-w64-mingw32 Common `host-platform-triplets` for cross compilation are: @@ -32,6 +32,7 @@ Common `host-platform-triplets` for cross compilation are: - `powerpc64le-linux-gnu` for Linux POWER 64-bit (little endian) - `riscv32-linux-gnu` for Linux RISC-V 32 bit - `riscv64-linux-gnu` for Linux RISC-V 64 bit +- `s390x-linux-gnu` for Linux S390X - `armv7a-linux-android` for Android ARM 32 bit - `aarch64-linux-android` for Android ARM 64 bit - `i686-linux-android` for Android x86 32 bit @@ -74,6 +75,10 @@ For linux RISC-V 64-bit cross compilation (there are no packages for 32-bit): RISC-V known issue: gcc-7.3.0 and gcc-7.3.1 result in a broken `test_bitcoin` executable (see https://github.com/bitcoin/bitcoin/pull/13543), this is apparently fixed in gcc-8.1.0. +For linux S390X cross compilation: + + sudo apt-get install g++-s390x-linux-gnu binutils-s390x-linux-gnu + ### Dependency Options The following can be set when running make: make FOO=bar diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index 6f7d630f4c..4d45f55e2d 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -131,6 +131,7 @@ $(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++ $(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ +$(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linux-g++ $(package)_config_opts_mingw32 = -no-opengl $(package)_config_opts_mingw32 += -no-dbus -- cgit v1.2.3