diff options
author | bojie <bojie@dexon.org> | 2018-12-28 13:15:06 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:20 +0800 |
commit | 3d46f69a10a60324ee6af0c96d064cc73ed5c37d (patch) | |
tree | ae9dd76f3f9a69c0acb18f6b0343601558d2e00f /build/bls-arm64.sh | |
parent | 2426b985ae9773afe12f5a9f982cf4f2629f81a3 (diff) | |
download | go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar.gz go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar.bz2 go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar.lz go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar.xz go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.tar.zst go-tangerine-3d46f69a10a60324ee6af0c96d064cc73ed5c37d.zip |
app: use gcp storage instead of azure for builds (#81)
* vendor: add dependencies for using GCP storage
* app: use gcp storage instead of azure for builds
Diffstat (limited to 'build/bls-arm64.sh')
-rwxr-xr-x | build/bls-arm64.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/build/bls-arm64.sh b/build/bls-arm64.sh new file mode 100755 index 000000000..e2046dee0 --- /dev/null +++ b/build/bls-arm64.sh @@ -0,0 +1,43 @@ +#!/bin/bash -f + +cd vendor/github.com/dexon-foundation/ + +sudo apt-get update + +sudo apt-get -yq --no-install-suggests --no-install-recommends --allow-downgrades --allow-remove-essential --allow-change-held-packages install gcc-aarch64-linux-gnu libc6-dev-arm64-cross g++-aarch64-linux-gnu + +rm -rf dep +mkdir dep; cd dep + +echo 'travis_fold:start:aarch64-libgmp' +echo 'Cross compiling libgmp for aarch64' +mkdir libgmp; cd libgmp +wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2 +tar -xjf gmp-6.1.2.tar.bz2 +cd gmp-6.1.2 +./configure --host=aarch64-linux-gnu --prefix=/usr/aarch64-linux-gnu --enable-cxx +sudo make -j8 +sudo make install +cd ../.. +echo 'travis_fold:end:aarch64-libgmp' + +echo 'travis_fold:start:aarch64-openssl' +echo 'Cross compiling OpenSSL for aarch64' +mkdir openssl; cd openssl +wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz +tar -xzf openssl-1.1.1a.tar.gz +cd openssl-1.1.1a +./Configure linux-aarch64 --prefix=/usr/aarch64-linux-gnu +sudo make CC=aarch64-linux-gnu-gcc -j8 +sudo make install +cd ../.. +echo 'travis_fold:end:aarch64-openssl' + +cd ../ + +echo 'travis_fold:start:aarch64-bls' +echo 'Cross compiling bls for aarch64' +cd bls +make -C ../mcl clean +GMP_PREFIX=/usr/aarch64-linux-gnu/lib OPENSSL_PREFIX=/usr/aarch64-linux-gnu/lib ARCH=aarch64 CXX=aarch64-linux-gnu-g++ make clean all +echo 'travis_fold:end:aarch64-bls' |