-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'BOINC:master' into Vulpine05-3403-Revised
- Loading branch information
Showing
13 changed files
with
364 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Script to compile Libcurl for linux arm64 | ||
|
||
STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" | ||
CONFIGURE="yes" | ||
MAKECLEAN="yes" | ||
VERBOSE="${VERBOSE:-no}" | ||
CI="${CI:-no}" | ||
NPROC_USER="${NPROC_USER:-1}" | ||
|
||
export CURL_VERSION=7.84.0 | ||
export BUILD_DIR=${BUILD_DIR:-$PWD/3rdParty/linux-arm64} | ||
export CURL="$BUILD_DIR/curl-$CURL_VERSION" #CURL sources, required by BOINC | ||
export CURL_FLAGFILE=$BUILD_DIR/curl-$CURL_VERSION.flagfile | ||
|
||
export TCINCLUDES="$BUILD_DIR/build" | ||
export TCBINARIES="$TCINCLUDES/bin" | ||
export TCSYSROOT="$BUILD_DIR/sysroot" | ||
|
||
export PATH="$TCBINARIES:$PATH" | ||
export CC=aarch64-linux-gnu-gcc | ||
export CXX=aarch64-linux-gnu-g++ | ||
export LD=aarch64-linux-gnu-ld | ||
export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3" | ||
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3" | ||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" | ||
|
||
MAKE_FLAGS="" | ||
|
||
if [ $VERBOSE = "no" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS --silent" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" | ||
fi | ||
|
||
if [ $CI = "yes" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS -j $(nproc --all)" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" | ||
fi | ||
|
||
if [ ! -e "${CURL_FLAGFILE}" ]; then | ||
rm -rf "$BUILD_DIR/curl-${CURL_VERSION}" | ||
wget -c --no-verbose -O /tmp/curl_${CURL_VERSION}.tgz https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz | ||
tar xzf /tmp/curl_${CURL_VERSION}.tgz --directory=$BUILD_DIR | ||
fi | ||
|
||
if [ ! -e "${CURL_FLAGFILE}" ]; then | ||
cd "$CURL" | ||
echo "===== building curl for arm64 from $PWD =====" | ||
if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then | ||
if [ "$VERBOSE" = "no" ]; then | ||
make distclean 1>$STDOUT_TARGET 2>&1 | ||
else | ||
make distclean SHELL="/bin/bash -x" | ||
fi | ||
fi | ||
if [ -n "$CONFIGURE" ]; then | ||
./configure --host=aarch64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET --with-openssl | ||
fi | ||
if [ $VERBOSE = "no" ]; then | ||
echo MAKE_FLAGS=$MAKE_FLAGS "1>$STDOUT_TARGET" | ||
make $MAKE_FLAGS 1>$STDOUT_TARGET | ||
make install $MAKE_FLAGS 1>$STDOUT_TARGET | ||
else | ||
echo MAKE_FLAGS=$MAKE_FLAGS | ||
make $MAKE_FLAGS | ||
make install $MAKE_FLAGS | ||
fi | ||
|
||
touch "${CURL_FLAGFILE}" | ||
echo "\e[1;32m===== curl for arm64 build done =====\e[0m" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#/bin/sh | ||
set -e | ||
|
||
#script to compile Example for Android | ||
|
||
STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" | ||
COMPILEBOINC="yes" | ||
CONFIGURE="yes" | ||
VERBOSE="${VERBOSE:-no}" | ||
CI="${CI:-no}" | ||
NPROC_USER="${NPROC_USER:-1}" | ||
|
||
export BUILD_DIR=${BUILD_DIR:-$PWD/3rdParty/linux-arm64} | ||
|
||
export TCINCLUDES="$BUILD_DIR/build" | ||
export TCBINARIES="$TCINCLUDES/bin" | ||
export TCSYSROOT="$BUILD_DIR/sysroot" | ||
|
||
export BOINC_API_DIR="$PWD/api" | ||
export BOINC_LIB_DIR="$PWD/lib" | ||
export BOINC_ZIP_DIR="$PWD/zip" | ||
|
||
export PATH="$TCBINARIES:$PATH" | ||
export CC=aarch64-linux-gnu-gcc | ||
export CXX=aarch64-linux-gnu-g++ | ||
export LD=aarch64-linux-gnu-ld | ||
export CFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR" | ||
export CXXFLAGS="--sysroot=$TCSYSROOT -I$TCINCLUDES/include -march=armv8-a -O3 -I$BOINC -I$BOINC_LIB_DIR -I$BOINC_API_DIR -I$BOINC_ZIP_DIR" | ||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" | ||
# export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++ -lz" | ||
|
||
CONFIG_FLAGS="--with-ssl=$TCINCLUDES --with-libcurl=$TCINCLUDES" | ||
CONFIG_LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib" | ||
export _libcurl_pc="$TCINCLUDES/lib/pkgconfig/libcurl.pc" | ||
|
||
MAKE_FLAGS="" | ||
|
||
if [ $VERBOSE = "no" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS --silent" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" | ||
fi | ||
|
||
if [ $CI = "yes" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS -j $(nproc --all)" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" | ||
fi | ||
|
||
if [ -n "$COMPILEBOINC" ]; then | ||
echo "===== building example for arm64 from $PWD =====" | ||
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then | ||
echo "=== building example clean ===" | ||
if [ "$VERBOSE" = "no" ]; then | ||
make distclean 1>$STDOUT_TARGET 2>&1 | ||
else | ||
make distclean SHELL="/bin/bash -x" | ||
fi | ||
fi | ||
if [ -n "$CONFIGURE" ]; then | ||
./_autosetup | ||
./configure --host=aarch64-linux --with-boinc-platform="aarch64-unknown-linux-gnu" --with-boinc-alt-platform="arm-unknown-linux-gnueabihf" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" $CONFIG_FLAGS --enable-apps --disable-server --disable-manager --disable-client --disable-libraries --disable-shared --enable-static --enable-boinczip | ||
fi | ||
echo MAKE_FLAGS=$MAKE_FLAGS | ||
make $MAKE_FLAGS | ||
echo "\e[1;32m===== building example for arm64 done =====\e[0m" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Script to compile various BOINC libraries for linux arm64 | ||
|
||
STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" | ||
COMPILEBOINC="yes" | ||
CONFIGURE="yes" | ||
MAKECLEAN="yes" | ||
VERBOSE="${VERBOSE:-no}" | ||
CI="${CI:-no}" | ||
NPROC_USER="${NPROC_USER:-1}" | ||
|
||
export BUILD_DIR=${BUILD_DIR:-$PWD/3rdParty/linux-arm64} | ||
|
||
export TCINCLUDES="$BUILD_DIR/build" | ||
export TCSYSROOT="$BUILD_DIR/sysroot" | ||
|
||
export CC=aarch64-linux-gnu-gcc | ||
export CXX=aarch64-linux-gnu-g++ | ||
export LD=aarch64-linux-gnu-ld | ||
export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a" | ||
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a" | ||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -static-libstdc++ -static" | ||
|
||
MAKE_FLAGS="" | ||
|
||
if [ $VERBOSE = "no" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS --silent" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" | ||
fi | ||
|
||
if [ $CI = "yes" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS -j $(nproc --all)" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" | ||
fi | ||
|
||
if [ -n "$COMPILEBOINC" ]; then | ||
|
||
echo "===== building BOINC Libraries for arm64 from $PWD =====" | ||
if [ -n "$MAKECLEAN" ] && [ -f "Makefile" ]; then | ||
if [ "$VERBOSE" = "no" ]; then | ||
make distclean 1>$STDOUT_TARGET 2>&1 | ||
else | ||
make distclean SHELL="/bin/bash -x" | ||
fi | ||
fi | ||
if [ -n "$CONFIGURE" ]; then | ||
./_autosetup | ||
./configure --host=aarch64-linux --with-boinc-platform="aarch64-unknown-linux-gnu" --with-boinc-alt-platform="arm-unknown-linux-gnueabihf" --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-server --disable-manager --disable-client --disable-shared --enable-static --enable-boinczip | ||
fi | ||
echo MAKE_FLAGS=$MAKE_FLAGS | ||
make $MAKE_FLAGS | ||
make stage $MAKE_FLAGS | ||
make install $MAKE_FLAGS | ||
|
||
echo "\e[1;32m===== building BOINC Libraries for arm64 done =====\e[0m" | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Script to compile OpenSSL for linux arm64 | ||
|
||
STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" | ||
CONFIGURE="yes" | ||
MAKECLEAN="yes" | ||
VERBOSE="${VERBOSE:-no}" | ||
CI="${CI:-no}" | ||
NPROC_USER="${NPROC_USER:-1}" | ||
|
||
export OPENSSL_VERSION=3.0.5 | ||
export BUILD_DIR=${BUILD_DIR:-$PWD/3rdParty/linux-arm64} | ||
export OPENSSL="$BUILD_DIR/openssl-$OPENSSL_VERSION" #openSSL sources, required by BOINC | ||
export OPENSSL_FLAGFILE=$BUILD_DIR/openssl-$OPENSSL_VERSION.flagfile | ||
|
||
export TCINCLUDES="$BUILD_DIR/build" | ||
export TCBINARIES="$TCINCLUDES/bin" | ||
export TCSYSROOT="$BUILD_DIR/sysroot" | ||
|
||
export PATH="$TCBINARIES:$PATH" | ||
export CC=aarch64-linux-gnu-gcc | ||
export CXX=aarch64-linux-gnu-g++ | ||
export LD=aarch64-linux-gnu-ld | ||
export CFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" | ||
export CXXFLAGS="--sysroot=$TCSYSROOT -march=armv8-a -O3" | ||
export LDFLAGS="-L$TCSYSROOT/usr/lib -L$TCINCLUDES/lib -march=armv8-a -latomic -static-libstdc++" | ||
|
||
MAKE_FLAGS="" | ||
|
||
if [ $VERBOSE = "no" ]; then | ||
MAKE_FLAGS="$MAKE_FLAGS --silent" | ||
else | ||
MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" | ||
fi | ||
|
||
if [ $CI = "yes" ]; then | ||
MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" | ||
else | ||
MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" | ||
fi | ||
|
||
mkdir -p $BUILD_DIR | ||
|
||
if [ ! -e "${OPENSSL_FLAGFILE}" ]; then | ||
rm -rf "$BUILD_DIR/openssl-${OPENSSL_VERSION}" | ||
wget -c --no-verbose -O /tmp/openssl_${OPENSSL_VERSION}.tgz https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | ||
tar xzf /tmp/openssl_${OPENSSL_VERSION}.tgz --directory=$BUILD_DIR | ||
fi | ||
|
||
if [ ! -e "${OPENSSL_FLAGFILE}" ]; then | ||
cd "$OPENSSL" | ||
echo "===== building openssl for arm64 from $PWD =====" | ||
if [ -n "$MAKECLEAN" -a -e "${OPENSSL}/Makefile" ]; then | ||
if [ "$VERBOSE" = "no" ]; then | ||
make clean 1>$STDOUT_TARGET 2>&1 | ||
else | ||
make clean SHELL="/bin/bash -x" | ||
fi | ||
fi | ||
if [ -n "$CONFIGURE" ]; then | ||
./Configure linux-generic32 no-shared no-dso -DL_ENDIAN --openssldir="$TCINCLUDES" --prefix="$TCINCLUDES" 1>$STDOUT_TARGET | ||
fi | ||
if [ $VERBOSE = "no" ]; then | ||
echo MAKE_FLAGS=$MAKE_FLAGS "1>$STDOUT_TARGET" | ||
make $MAKE_FLAGS 1>$STDOUT_TARGET | ||
make install_sw $MAKE_FLAGS 1>$STDOUT_TARGET | ||
else | ||
echo MAKE_FLAGS=$MAKE_FLAGS | ||
make $MAKE_FLAGS | ||
make install_sw $MAKE_FLAGS | ||
fi | ||
|
||
touch "${OPENSSL_FLAGFILE}" | ||
echo "\e[1;32m===== openssl for arm64 build done =====\e[0m" | ||
fi |
Oops, something went wrong.