forked from gertjaap/VTCDocker
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-arm-only.sh
executable file
·22 lines (18 loc) · 1.04 KB
/
build-arm-only.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cd /root/vertcoin
export WORKSPACE=`pwd`
rm -rf build
export HOST=arm-linux-gnueabihf
make -j8 -C depends HOST=$HOST
./autogen.sh
mkdir build && cd build
../configure LDFLAGS=-static-libstdc++ --disable-dependency-tracking --disable-tests --disable-bench --enable-glibc-back-compat --prefix=$WORKSPACE/depends/$HOST --enable-reduce-exports
make -j8
rm -rf /root/output/$HOST
mkdir -p /root/output/$HOST/bin
find $WORKSPACE/build/src/vertcoin* $WORKSPACE/build/src/qt/vertcoin* -maxdepth 2 -type f -not -name "*_*" -and -not -name "vertcoind-bitcoind.o" -exec mv {} /root/output/$HOST/bin \;
#QT_BINS=("/root/output/$HOST/bin/vertcoin-qt")
#DAEMON_BINS=("/root/output/$HOST/bin/vertcoind" "/root/output/$HOST/bin/vertcoin-tx" "/root/output/$HOST/bin/vertcoin-cli" "/root/output/$HOST/bin/vertcoin-wallet" "/root/output/$HOST/bin/vertcoin-util")
#strip --strip-unneeded "${QT_BINS[@]}" "${DAEMON_BINS[@]}"
#zip -j /root/output/vertcoind-arm-linux-gnueabihf.zip "${DAEMON_BINS[@]}"
#zip -j /root/output/vertcoinqt-arm-linux-gnueabihf.zip "${QT_BINS[@]}"