From bab0ef964590cb5e0d6e4c60f5a0e5fd868265c1 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Tue, 30 Mar 2021 20:09:15 +0300 Subject: [PATCH] Arrange android ci --- .github/workflows/android.yml | 1 - android/buildAndroidBOINC-CI.sh | 43 +++++++++++++++------------------ android/build_curl_arm.sh | 20 ++++++++------- android/build_curl_arm64.sh | 21 +++++++++------- android/build_curl_armv6.sh | 21 +++++++++------- android/build_curl_x86.sh | 21 +++++++++------- android/build_curl_x86_64.sh | 21 +++++++++------- android/build_openssl_arm.sh | 25 ++++++++++--------- android/build_openssl_arm64.sh | 25 ++++++++++--------- android/build_openssl_armv6.sh | 25 ++++++++++--------- android/build_openssl_x86.sh | 22 +++++++++++------ android/build_openssl_x86_64.sh | 25 ++++++++++--------- client/Makefile.curl.am | 2 +- client/Makefile.linux | 5 ++-- 14 files changed, 153 insertions(+), 124 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c70f14860e..2849fd22d5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -33,7 +33,6 @@ jobs: with: path: 3rdParty/buildCache key: android-${{ matrix.type }}-${{ hashFiles('android/*.sh') }} - restore-keys: android-${{ matrix.type }}- - name: Build manager if: ${{ success() && matrix.type == 'manager' }} diff --git a/android/buildAndroidBOINC-CI.sh b/android/buildAndroidBOINC-CI.sh index d0330a22ac..0298a2a65f 100755 --- a/android/buildAndroidBOINC-CI.sh +++ b/android/buildAndroidBOINC-CI.sh @@ -141,9 +141,6 @@ if [ "${silent}" = "yes" ]; then export STDOUT_TARGET="/dev/null" fi -export COMPILEOPENSSL="no" -export COMPILECURL="no" -export ANDROID_TC_FLAGFILE="$PREFIX/ANDROID_TC_WITH_NDK-${NDK_VERSION}-${arch}-${REV}_done" export NDK_FLAGFILE="$PREFIX/NDK-${NDK_VERSION}-${REV}_done" export NDK_ARMV6_FLAGFILE="$PREFIX/NDK-${NDK_ARMV6_VERSION}-armv6-${ARMV6_REV}_done" export NDK_ROOT=$BUILD_DIR/android-ndk-r${NDK_VERSION} @@ -159,9 +156,11 @@ export BUILD_WITH_VCPKG=$build_with_vcpkg if [ "$arch" = armv6 ]; then export CURL_FLAGFILE="$PREFIX/curl-${CURL_VERSION}-${NDK_ARMV6_VERSION}-${arch}_done" export OPENSSL_FLAGFILE="$PREFIX/openssl-${OPENSSL_VERSION}-${NDK_ARMV6_VERSION}-${arch}_done" + export ANDROID_TC_FLAGFILE="$PREFIX/ANDROID_TC_WITH_NDK-${NDK_ARMV6_VERSION}-${arch}-${ARMV6_REV}_done" else export CURL_FLAGFILE="$PREFIX/curl-${CURL_VERSION}-${NDK_VERSION}-${arch}_done" export OPENSSL_FLAGFILE="$PREFIX/openssl-${OPENSSL_VERSION}-${NDK_VERSION}-${arch}_done" + export ANDROID_TC_FLAGFILE="$PREFIX/ANDROID_TC_WITH_NDK-${NDK_VERSION}-${arch}-${REV}_done" fi createNDKFolder() @@ -183,25 +182,9 @@ if [ ! -e "${NDK_FLAGFILE}" ]; then touch "${NDK_FLAGFILE}" fi -if [ ! -e "${ANDROID_TC_FLAGFILE}" ]; then - if [ $arch != "armv6" ]; then - rm -rf "${PREFIX}/${arch}" - echo delete "${PREFIX}/${arch}" - rm -rf "${OPENSSL_FLAGFILE}" - rm -rf "${CURL_FLAGFILE}" - touch ${ANDROID_TC_FLAGFILE} - fi -fi - if [ ! -e "${NDK_ARMV6_FLAGFILE}" ]; then - if [ $arch = "armv6" ]; then - rm -rf "${PREFIX}/${arch}" - echo delete "${PREFIX}/${arch}" - rm -rf "${OPENSSL_FLAGFILE}" - rm -rf "${CURL_FLAGFILE}" - createNDKARMV6Folder - touch "${NDK_ARMV6_FLAGFILE}" - fi + createNDKARMV6Folder + touch "${NDK_ARMV6_FLAGFILE}" fi if [ ! -d $NDK_ROOT ]; then @@ -212,18 +195,24 @@ if [ ! -d $NDK_ARMV6_ROOT ]; then createNDKARMV6Folder fi +if [ ! -e "${ANDROID_TC_FLAGFILE}" ]; then + rm -rf "${PREFIX}/${arch}" + echo delete "${PREFIX}/${arch}" + rm -rf "${OPENSSL_FLAGFILE}" + rm -rf "${CURL_FLAGFILE}" + touch ${ANDROID_TC_FLAGFILE} +fi + 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 - export COMPILEOPENSSL="yes" 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 - export COMPILECURL="yes" fi patchVcpkgScripts() @@ -427,6 +416,11 @@ Armv6TestApps() Armv6Test boinc_gahp uc2 ucn multi_thread sleeper worker wrapper wrappture_example fermi } +NeonTestApps() +{ + NeonTest boinc_gahp uc2 ucn multi_thread sleeper worker wrapper +} + RenameAllApps() { list_apps="../samples/condor/ boinc_gahp @@ -478,6 +472,7 @@ case "$arch" in ./build_libraries_armv6.sh ./build_example_armv6.sh NeonTestLibs + NeonTestApps Armv6TestLibs Armv6TestApps if [ "$ci" = "yes" ]; then @@ -510,6 +505,8 @@ case "$arch" in ./build_curl_arm.sh ./build_libraries_arm.sh ./build_example_arm.sh + NeonTestLibs + NeonTestApps if [ "$ci" = "yes" ]; then RenameAllApps arm fi diff --git a/android/build_curl_arm.sh b/android/build_curl_arm.sh index 97a275313f..2b1bf77ca5 100755 --- a/android/build_curl_arm.sh +++ b/android/build_curl_arm.sh @@ -7,7 +7,6 @@ set -e # Script to compile Libcurl for Android -COMPILECURL="${COMPILECURL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,7 +35,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + MAKE_FLAGS="$MAKE_FLAGS --silent" else MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" fi @@ -47,7 +46,7 @@ else MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILECURL" = "yes" ]; then +if [ ! -e "${CURL_FLAGFILE}" ]; then cd "$CURL" echo "===== building curl for arm from $PWD =====" if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then @@ -60,12 +59,15 @@ if [ "$COMPILECURL" = "yes" ]; then if [ -n "$CONFIGURE" ]; then ./configure --host=arm-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom --without-zlib 1>$STDOUT_TARGET fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install $MAKE_FLAGS - - if [ ! -z ${CURL_FLAGFILE} ]; then - touch "${CURL_FLAGFILE}" + 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 "===== curl for arm build done =====" fi diff --git a/android/build_curl_arm64.sh b/android/build_curl_arm64.sh index a3d07e1c7c..563cd849e4 100755 --- a/android/build_curl_arm64.sh +++ b/android/build_curl_arm64.sh @@ -7,7 +7,6 @@ set -e # Script to compile Libcurl for Android -COMPILECURL="${COMPILECURL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,7 +35,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + MAKE_FLAGS="$MAKE_FLAGS --silent" else MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" fi @@ -47,7 +46,7 @@ else MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILECURL" = "yes" ]; then +if [ ! -e "${CURL_FLAGFILE}" ]; then cd "$CURL" echo "===== building curl for arm64 from $PWD =====" if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then @@ -60,12 +59,16 @@ if [ "$COMPILECURL" = "yes" ]; then if [ -n "$CONFIGURE" ]; then ./configure --host=aarch64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install $MAKE_FLAGS - - if [ ! -z ${CURL_FLAGFILE} ]; then - touch "${CURL_FLAGFILE}" + 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 "===== curl for arm64 build done =====" fi diff --git a/android/build_curl_armv6.sh b/android/build_curl_armv6.sh index b7788c6c7b..e6ada38474 100755 --- a/android/build_curl_armv6.sh +++ b/android/build_curl_armv6.sh @@ -7,7 +7,6 @@ set -e # Script to compile Libcurl for Android -COMPILECURL="${COMPILECURL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -38,7 +37,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + MAKE_FLAGS="$MAKE_FLAGS --silent" else MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" fi @@ -49,7 +48,7 @@ else MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILECURL" = "yes" ]; then +if [ ! -e "${CURL_FLAGFILE}" ]; then cd "$CURL" echo "===== building curl for armv6 from $PWD =====" if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then @@ -62,12 +61,16 @@ if [ "$COMPILECURL" = "yes" ]; then if [ -n "$CONFIGURE" ]; then ./configure --host=armv6-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom --without-zlib 1>$STDOUT_TARGET fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install $MAKE_FLAGS + 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 - if [ ! -z ${CURL_FLAGFILE} ]; then - touch "${CURL_FLAGFILE}" - fi + touch "${CURL_FLAGFILE}" echo "===== curl for armv6 build done =====" fi diff --git a/android/build_curl_x86.sh b/android/build_curl_x86.sh index e08276bdf5..666bb16cd4 100755 --- a/android/build_curl_x86.sh +++ b/android/build_curl_x86.sh @@ -7,7 +7,6 @@ set -e # Script to compile Libcurl for Android -COMPILECURL="${COMPILECURL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,7 +35,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + MAKE_FLAGS="$MAKE_FLAGS --silent" else MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" fi @@ -47,7 +46,7 @@ else MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILECURL" = "yes" ]; then +if [ ! -e "${CURL_FLAGFILE}" ]; then cd "$CURL" echo "===== building curl for x86 from $PWD =====" if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then @@ -60,12 +59,16 @@ if [ "$COMPILECURL" = "yes" ]; then if [ -n "$CONFIGURE" ]; then ./configure --host=i686-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install $MAKE_FLAGS - - if [ ! -z ${CURL_FLAGFILE} ]; then - touch "${CURL_FLAGFILE}" + 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 "===== curl for x86 build done =====" fi diff --git a/android/build_curl_x86_64.sh b/android/build_curl_x86_64.sh index 5f0cf48363..2aaea1ed19 100755 --- a/android/build_curl_x86_64.sh +++ b/android/build_curl_x86_64.sh @@ -7,7 +7,6 @@ set -e # Script to compile Libcurl for Android -COMPILECURL="${COMPILECURL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,7 +35,7 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + MAKE_FLAGS="$MAKE_FLAGS --silent" else MAKE_FLAGS="$MAKE_FLAGS SHELL=\"/bin/bash -x\"" fi @@ -47,7 +46,7 @@ else MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILECURL" = "yes" ]; then +if [ ! -e "${CURL_FLAGFILE}" ]; then cd "$CURL" echo "===== building curl for x86-64 from $PWD =====" if [ -n "$MAKECLEAN" ] && $(grep -q "^distclean:" "${CURL}/Makefile"); then @@ -60,12 +59,16 @@ if [ "$COMPILECURL" = "yes" ]; then if [ -n "$CONFIGURE" ]; then ./configure --host=x86_64-linux --prefix="$TCINCLUDES" --libdir="$TCINCLUDES/lib" --disable-shared --enable-static --with-random=/dev/urandom 1>$STDOUT_TARGET fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install $MAKE_FLAGS - - if [ ! -z ${CURL_FLAGFILE} ]; then - touch "${CURL_FLAGFILE}" + 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 "===== curl for x86-64 build done =====" fi diff --git a/android/build_openssl_arm.sh b/android/build_openssl_arm.sh index 7ee5c10015..e75136db01 100755 --- a/android/build_openssl_arm.sh +++ b/android/build_openssl_arm.sh @@ -7,7 +7,6 @@ set -e # Script to compile OpenSSL for Android -COMPILEOPENSSL="${COMPILEOPENSSL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,18 +35,18 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + 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)" + MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" else - MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" + MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILEOPENSSL" = "yes" ]; then +if [ ! -e "${OPENSSL_FLAGFILE}" ]; then cd "$OPENSSL" echo "===== building openssl for arm from $PWD =====" if [ -n "$MAKECLEAN" ]; then @@ -63,12 +62,16 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then sed -e "s/^CFLAG=.*$/`grep -e \^CFLAG= Makefile` \$(CFLAGS)/g" Makefile > Makefile.out mv Makefile.out Makefile fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install_sw $MAKE_FLAGS - - if [ ! -z ${OPENSSL_FLAGFILE} ]; then - touch "${OPENSSL_FLAGFILE}" + 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 "===== openssl for arm build done =====" fi diff --git a/android/build_openssl_arm64.sh b/android/build_openssl_arm64.sh index 28bd0887b2..1f615d9126 100755 --- a/android/build_openssl_arm64.sh +++ b/android/build_openssl_arm64.sh @@ -7,7 +7,6 @@ set -e # Script to compile OpenSSL for Android -COMPILEOPENSSL="${COMPILEOPENSSL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,18 +35,18 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + 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)" + MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" else - MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" + MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILEOPENSSL" = "yes" ]; then +if [ ! -e "${OPENSSL_FLAGFILE}" ]; then cd "$OPENSSL" echo "===== building openssl for arm64 from $PWD =====" if [ -n "$MAKECLEAN" ]; then @@ -63,12 +62,16 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then sed -e "s/^CFLAG=.*$/`grep -e \^CFLAG= Makefile` \$(CFLAGS)/g" Makefile > Makefile.out mv Makefile.out Makefile fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install_sw $MAKE_FLAGS - - if [ ! -z ${OPENSSL_FLAGFILE} ]; then - touch "${OPENSSL_FLAGFILE}" + 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 "===== openssl for arm64 build done =====" fi diff --git a/android/build_openssl_armv6.sh b/android/build_openssl_armv6.sh index fd411dd4b9..93695566a6 100755 --- a/android/build_openssl_armv6.sh +++ b/android/build_openssl_armv6.sh @@ -7,7 +7,6 @@ set -e # Script to compile OpenSSL for Android -COMPILEOPENSSL="${COMPILEOPENSSL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -38,18 +37,18 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + 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)" + MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" else - MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" + MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILEOPENSSL" = "yes" ]; then +if [ ! -e "${OPENSSL_FLAGFILE}" ]; then cd "$OPENSSL" echo "===== building openssl for armv6 from $PWD =====" if [ -n "$MAKECLEAN" ]; then @@ -65,12 +64,16 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then sed -e "s/^CFLAG=.*$/`grep -e \^CFLAG= Makefile` \$(CFLAGS)/g" Makefile > Makefile.out mv Makefile.out Makefile fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install_sw $MAKE_FLAGS + 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 - if [ ! -z ${OPENSSL_FLAGFILE} ]; then - touch "${OPENSSL_FLAGFILE}" - fi + touch "${OPENSSL_FLAGFILE}" echo "===== openssl for armv6 build done =====" fi diff --git a/android/build_openssl_x86.sh b/android/build_openssl_x86.sh index 9e4f3f03a2..41dcbc672d 100755 --- a/android/build_openssl_x86.sh +++ b/android/build_openssl_x86.sh @@ -7,7 +7,6 @@ set -e # Script to compile OpenSSL for Android -COMPILEOPENSSL="${COMPILEOPENSSL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,18 +35,18 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + 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)" + MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" else - MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" + MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILEOPENSSL" = "yes" ]; then +if [ ! -e "${OPENSSL_FLAGFILE}" ]; then cd "$OPENSSL" echo "===== building openssl for x86 from $PWD =====" if [ -n "$MAKECLEAN" ]; then @@ -63,9 +62,16 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then sed -e "s/^CFLAG=.*$/`grep -e \^CFLAG= Makefile` \$(CFLAGS)/g" Makefile > Makefile.out mv Makefile.out Makefile fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install_sw $MAKE_FLAGS + 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 "===== openssl for x86 build done =====" fi diff --git a/android/build_openssl_x86_64.sh b/android/build_openssl_x86_64.sh index 1a1144b4db..5b9b0f1282 100755 --- a/android/build_openssl_x86_64.sh +++ b/android/build_openssl_x86_64.sh @@ -7,7 +7,6 @@ set -e # Script to compile OpenSSL for Android -COMPILEOPENSSL="${COMPILEOPENSSL:-yes}" STDOUT_TARGET="${STDOUT_TARGET:-/dev/stdout}" CONFIGURE="yes" MAKECLEAN="yes" @@ -36,18 +35,18 @@ export GDB_CFLAGS="--sysroot=$TCSYSROOT -Wall -g -I$TCINCLUDES/include" MAKE_FLAGS="" if [ $VERBOSE = "no" ]; then - MAKE_FLAGS="$MAKE_FLAGS --silent 1>$STDOUT_TARGET" + 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)" + MAKE_FLAGS1="$MAKE_FLAGS -j $(nproc --all)" else - MAKE_FLAGS="$MAKE_FLAGS -j $NPROC_USER" + MAKE_FLAGS1="$MAKE_FLAGS -j $NPROC_USER" fi -if [ "$COMPILEOPENSSL" = "yes" ]; then +if [ ! -e "${OPENSSL_FLAGFILE}" ]; then cd "$OPENSSL" echo "===== building openssl for x86-64 from $PWD =====" if [ -n "$MAKECLEAN" ]; then @@ -63,12 +62,16 @@ if [ "$COMPILEOPENSSL" = "yes" ]; then sed -e "s/^CFLAG=.*$/`grep -e \^CFLAG= Makefile` \$(CFLAGS)/g" Makefile > Makefile.out mv Makefile.out Makefile fi - echo MAKE_FLAGS=$MAKE_FLAGS - make $MAKE_FLAGS - make install_sw $MAKE_FLAGS - - if [ ! -z ${OPENSSL_FLAGFILE} ]; then - touch "${OPENSSL_FLAGFILE}" + 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 "===== openssl for x86-64 build done =====" fi diff --git a/client/Makefile.curl.am b/client/Makefile.curl.am index 1eab2ab865..b5db3ebba9 100644 --- a/client/Makefile.curl.am +++ b/client/Makefile.curl.am @@ -59,7 +59,7 @@ boinc_client_SOURCES = \ boinc_client_DEPENDENCIES = $(LIBRSA) boinc_client_CPPFLAGS = -D_USE_CURL -I../../curl-7.14.0/include -I $(srcdir)/win $(AM_CPPFLAGS) -O3 boinc_client_LDFLAGS = -static-libgcc -boinc_client_LDADD = -L/usr/local/ssl/lib -lssl -L../../curl-7.14.0/lib -lcurl -L../lib -lboinc $(RSA_LIBS) $(PTHREAD_LIBS) +boinc_client_LDADD = -L/usr/local/ssl/lib -L../../curl-7.14.0/lib -L../lib -lcurl -lssl -lcrypto -lboinc $(RSA_LIBS) $(PTHREAD_LIBS) #boinc_client_LDFLAGS = $(STATIC_FLAGS) # the following don't do anything diff --git a/client/Makefile.linux b/client/Makefile.linux index 4a9b4ab8fd..acbc24ba64 100644 --- a/client/Makefile.linux +++ b/client/Makefile.linux @@ -134,10 +134,11 @@ clean: rm -f $(PROGS) $(BOINC_OBJ) dependencies LIBS = ../lib/lib.a \ + -L /usr/local/lib/ \ -lpthread \ -lX11 -lXss \ - -lssl -lcrypto \ - -L /usr/local/lib/ -lcurl -lz -ldl + -lcurl -lssl -lcrypto \ + -lz -ldl .cpp.o: $(CC) -c -o $*.o $<