This PR contains additions to doc/build-unix:
- Added link to depends system readme
- Added cross compile info
Resolves #7473
262 | + sudo apt-get install g++-arm-linux-gnueabi 263 | + 264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make -j10 HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ...
Not sure I agree with -j10 as a default for documentation. Better leave it out entirely as is the case for existing documentation.
262 | + sudo apt-get install g++-arm-linux-gnueabi 263 | + 264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ...
Should remove the ...
266 | + cd depends 267 | + make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1 ... 268 | + cd .. 269 | + ./configure --prefix=$PWD/depends/arm-unknown-linux-gnueabihf --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++ 270 | + make 271 | + scp src/bitcoind src/bitcoin-cli src/bitcoin-tx src/test/test_bitcoin $TARGET:
Not sure why there is an scp line here, seems othogonal.
you're right, it should be removed :+1:
Could remove this and then also squash the commits, please?
262 | + sudo apt-get install g++-arm-linux-gnueabi 263 | + 264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make HOST=arm-unknown-linux-gnueabihf NO_QT=1 # NO_WALLET=1 NO_UPNP=1
Please remove the comment # NO_WALLET=1 NO_UPNP=1
262 | + sudo apt-get install g++-arm-linux-gnueabi 263 | + 264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make HOST=arm-unknown-linux-gnueabihf NO_QT=1
-unknown appears to be incorrect also.
yep just realized that.... it should be arm-linux-gnueabihf
257 | +will also work on other Linux distributions, however the commands for 258 | +installing the toolchain will be different. 259 | + 260 | +First install the toolchain: 261 | + 262 | + sudo apt-get install g++-arm-linux-gnueabi
I believe this should be g++-arm-linux-gnueabihf
264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make HOST=arm-linux-gnueabihf NO_QT=1 268 | + cd .. 269 | + ./configure --prefix=$PWD/depends/arm-unknown-linux-gnueabihf --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
remove -unknown and the rogue space.
264 | +To build executables for ARM: 265 | + 266 | + cd depends 267 | + make HOST=arm-linux-gnueabihf NO_QT=1 268 | + cd .. 269 | + ./configure --prefix=$PWD/depends/ar-linux-gnueabihf --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
typo ar- should be arm-
Tested ACK d82d94c
ACK d82d94c92dcd047ab465dad02c4727824cf1c730
255 | +------------------- 256 | +These steps can be performed on, for example, an Ubuntu VM. The depends system 257 | +will also work on other Linux distributions, however the commands for 258 | +installing the toolchain will be different. 259 | + 260 | +First install the toolchain:
You are installing the ARM specific toolchain before actually telling the reader that you'll be building for ARM.
Just change the header of this section to "ARM Cross-compilation"
:+1: works for me