From 2087095ede1f40d75fedbc24d409e3a41ee13c04 Mon Sep 17 00:00:00 2001 From: WXbet Date: Sat, 8 Aug 2020 13:07:50 +0200 Subject: [PATCH] s3.TUP tidy config template comments -replace printf with echo to preserve newlines --- .../plugin_update_toolchain.config.template | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/support/configs/plugin_update_toolchain.config.template b/support/configs/plugin_update_toolchain.config.template index 5d99d77..a28f644 100644 --- a/support/configs/plugin_update_toolchain.config.template +++ b/support/configs/plugin_update_toolchain.config.template @@ -1,6 +1,6 @@ # List of setup, build and config commands below. All commands are executed in the context of the current user. # Pay attention to the SEMICOLON at the end of EACH command and the correct quoting (' or ") for or to avoid expansion of variables. -S3TUP_CONFIG_VERSION="19"; +S3TUP_CONFIG_VERSION="20"; # Tokens that are replaced automatically: # @CTNGSOURCE@ crosstool-NG source folder; support/crosstool/crosstool-ng @@ -59,12 +59,12 @@ ANDK_PKG_SHA1="bcf4023eb8cb6976a4c7cff0a8a8f145f162bf4d"; ANDK_CONFIG_tasks=('editor ".config";'); # config command1 ANDK_CONFIG_tasks+=('TPL_SAVE=$($gui --defaultno --output-fd 1 --ok-label "${txt_s3tup_menu_command_label_yes}" --cancel-label "${txt_s3tup_menu_command_label_no}" --colors $bt_ "$title_ - \Z0$pdesc\Zn" --title "-[ ${txt_s3tup_menu_edit_title} ]-" --inputbox "\n${txt_s3tup_menu_edit_text}" 10 55 "@TEMPLATE@") && cp ".config" "$TPL_SAVE";'); # config command2 ANDK_BUILD_tasks=('TOOLCHAIN="@TOOLCHAIN@";'); # build command1 -ANDK_BUILD_tasks+=('printf "Extracting prebuild toolchain "@ANDKSOURCE@/toolchains/llvm/prebuilt/linux-x86_64" from NDK to "@TOOLCHAIN@"..." | tee -a "@LOGFILE@" && rm -rf "@TOOLCHAIN@" | tee -a "@LOGFILE@" && cp -rf "@ANDKSOURCE@/toolchains/llvm/prebuilt/linux-x86_64/" "@TOOLCHAIN@" | tee -a "@LOGFILE@";'); # build command2 +ANDK_BUILD_tasks+=('echo "Extracting prebuild toolchain "@ANDKSOURCE@/toolchains/llvm/prebuilt/linux-x86_64" from NDK to "@TOOLCHAIN@"..." | tee -a "@LOGFILE@" && rm -rf "@TOOLCHAIN@" | tee -a "@LOGFILE@" && cp -rf "@ANDKSOURCE@/toolchains/llvm/prebuilt/linux-x86_64/" "@TOOLCHAIN@" | tee -a "@LOGFILE@";'); # build command2 ANDK_BUILD_tasks+=('cleanups="aarch64 arm i686 i386 x86_64 python .py pkgconfig ++ cmake test prebuilt_include bfd-plugins 2to3 share 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30";'); # build command3 ANDK_BUILD_tasks+=('cleanups=${cleanups//$ANDK_ARCH/} && cleanups=${cleanups//$ANDK_API/};'); # build command4 -ANDK_BUILD_tasks+=('printf "Cleaning up extracted toolchain to save disk space..." | tee -a "@LOGFILE@" && for c in $cleanups; do find "@TOOLCHAIN@" -name "*$c*" ! -name "*libc++*" -exec rm -rf {} \; 2>/dev/null >>"@LOGFILE@" 2>&1; done;'); # build command5 +ANDK_BUILD_tasks+=('echo "Cleaning up extracted toolchain to save disk space..." | tee -a "@LOGFILE@" && for c in $cleanups; do find "@TOOLCHAIN@" -name "*$c*" ! -name "*libc++*" -exec rm -rf {} \; 2>/dev/null >>"@LOGFILE@"; 2>&1; done;'); # build command5 ANDK_BUILD_tasks+=('rm -rf "$TOOLCHAIN/include" "$TOOLCHAIN/libexec" | tee -a "@LOGFILE@";'); # build command6 -ANDK_BUILD_tasks+=('printf "Creating symlinks "$TOOLCHAIN/bin/${ANDK_HOST}-gcc", "$TOOLCHAIN/bin/${ANDK_HOST}-clang" to wrap "$TOOLCHAIN/bin/${ANDK_CLANG}"..." | tee -a "@LOGFILE@" && ln -rsf "$TOOLCHAIN/bin/${ANDK_CLANG}" "$TOOLCHAIN/bin/${ANDK_HOST}-gcc" && ln -rsf "$TOOLCHAIN/bin/${ANDK_CLANG}" "$TOOLCHAIN/bin/${ANDK_HOST}-clang" && chmod 775 "$TOOLCHAIN/bin/${ANDK_HOST}*" | tee -a "@LOGFILE@";'); # build command7 +ANDK_BUILD_tasks+=('echo "Creating symlinks "$TOOLCHAIN/bin/${ANDK_HOST}-gcc", "$TOOLCHAIN/bin/${ANDK_HOST}-clang" to wrap "$TOOLCHAIN/bin/${ANDK_CLANG}"..." | tee -a "@LOGFILE@" && ln -rsf "$TOOLCHAIN/bin/${ANDK_CLANG}" "$TOOLCHAIN/bin/${ANDK_HOST}-gcc" && ln -rsf "$TOOLCHAIN/bin/${ANDK_CLANG}" "$TOOLCHAIN/bin/${ANDK_HOST}-clang" && chmod 775 "$TOOLCHAIN/bin/${ANDK_HOST}*" | tee -a "@LOGFILE@";'); # build command7 ANDK_SETUP_tasks=('pushd "$dldir" >/dev/null && [ ! "$(sha1sum "$(basename "$ANDK_PKG_URL")" 2>/dev/null | cut -d " " -f 1)" == "$ANDK_PKG_SHA1" ] && curl "$ANDK_PKG_URL" -o "$(basename "$ANDK_PKG_URL")";'); # setup command1 ANDK_SETUP_tasks+=('unzip -o -d "$ctdir" "$(basename "$ANDK_PKG_URL")" && popd >/dev/null;'); # setup command1 ANDK_SETUP_tasks+=('mv --force "$(basename "$ANDK_PKG_URL" | cut -d "-" -f 1-3)" "@ANDKSOURCE@";'); # setup command2 @@ -75,7 +75,7 @@ LIBS=(SSL_300 SSL_111 SSL_110 SSL_102 SSL_100 SSL_098 LIB_USB LIB_USB0 LIB_PCSC LIBS_LIST_BETA="0"; # In(Ex)clude libraries defined as beta LIBS_AUTO_INTEGRATE="1"; # Automatically reintegrate libraries when rebuilding toolchains -# OpenSSL 3.0.0-alpha5 +# OpenSSL 3.0.0 SSL_300="1"; SSL_300_beta="1"; SSL_300_name="OpenSSL"; @@ -94,7 +94,7 @@ SSL_300_tasks+=('make -j@CPUS@;'); SSL_300_tasks+=('make install;'); SSL_300_tasks+=('[ "@TYPE@" == "android-ndk" ] && find "@PREFIX@/lib/" -maxdepth 1 \( -name "libcrypto.*" -o -name "libssl.*" \) -execdir ln -frs "@PREFIX@/lib/{}" "@PREFIX@/lib/@HOST@/@API@/{}" \;;'); -# OpenSSL 1.1.1g +# OpenSSL 1.1.1 SSL_111="1"; SSL_111_beta="0"; SSL_111_name="OpenSSL"; @@ -113,7 +113,7 @@ SSL_111_tasks+=('make -j@CPUS@;'); SSL_111_tasks+=('make install;'); SSL_111_tasks+=('[ "@TYPE@" == "android-ndk" ] && find "@PREFIX@/lib/" -maxdepth 1 \( -name "libcrypto.*" -o -name "libssl.*" \) -execdir ln -frs "@PREFIX@/lib/{}" "@PREFIX@/lib/@HOST@/@API@/{}" \;;'); -# OpenSSL 1.1.0l +# OpenSSL 1.1.0 SSL_110="1"; SSL_110_name="OpenSSL"; SSL_110_version="$(curl --silent "https://api.github.com/repos/openssl/openssl/tags?page=1&per_page=100" | jq '[.[] | select(.name|test("OpenSSL_1_1_0[a-z].*"))][0] | .name' | sed -e 's#OpenSSL_##g; s#_#.#g; s#\"##g')"; @@ -128,7 +128,7 @@ SSL_110_tasks+=('./Configure --prefix=@PREFIX@ linux-generic32 shared;'); SSL_110_tasks+=('make -j@CPUS@;'); SSL_110_tasks+=('make install;'); -# OpenSSL 1.0.2u +# OpenSSL 1.0.2 SSL_102="1"; SSL_102_beta="0"; SSL_102_name="OpenSSL"; @@ -144,7 +144,7 @@ SSL_102_tasks+=('./Configure --prefix=@PREFIX@ linux-generic32 shared;'); SSL_102_tasks+=('make -j@CPUS@;'); SSL_102_tasks+=('make install SHLIB_VERSION_NUMBER=1.0.2 SHLIB_MINOR=0.2;'); -# OpenSSL 1.0.0t +# OpenSSL 1.0.0 SSL_100="1"; SSL_100_beta="0"; SSL_100_name="OpenSSL"; @@ -161,7 +161,7 @@ SSL_100_tasks+=('./Configure --prefix=@PREFIX@ linux-generic32 shared;'); SSL_100_tasks+=('make -j@CPUS@;'); SSL_100_tasks+=('make install;'); -# OpenSSL 0.9.8zh +# OpenSSL 0.9.8 SSL_098="1"; SSL_098_beta="0"; SSL_098_name="OpenSSL"; @@ -178,7 +178,7 @@ SSL_098_tasks+=('./Configure --prefix=@PREFIX@ linux-generic32 shared;'); SSL_098_tasks+=('make -j@CPUS@;'); SSL_098_tasks+=('make install;'); -# libusb 1.0.23 +# libusb LIB_USB="1"; LIB_USB_beta="0"; LIB_USB_name="libusb"; @@ -213,7 +213,7 @@ LIB_USB0_tasks+=('./configure --prefix=@PREFIX@ --host=@HOST@ --disable-udev;'); LIB_USB0_tasks+=('make -j@CPUS@;'); LIB_USB0_tasks+=('make install;'); -# PCSC-Lite 1.9.0 +# PCSC-Lite LIB_PCSC="1"; LIB_PCSC_beta="0"; LIB_PCSC_name="PCSC-Lite"; @@ -234,7 +234,7 @@ LIB_PCSC_tasks+=('[ "@TYPE@" == "android-ndk" ] && find "@PREFIX@/lib/" -maxdept LIB_PCSC_tasks+=('@VALIDATE@ "PCSC";'); LIB_PCSC_tasks+=('[ "@TYPE@" == "android-ndk" ] && zip -j "$bdir/@HOST@@API@-pcscd.zip" -xi "@PREFIX@/sbin/pcscd";'); -# CCID IFD Handler 1.4.33 +# CCID IFD Handler LIB_CCID="1"; LIB_CCID_beta="0"; LIB_CCID_name="CCID"; @@ -257,7 +257,7 @@ LIB_CCID_tasks+=('[ "@TYPE@" == "android-ndk" ] && zip -j "$bdir/@HOST@@API@-lib LIB_CCID_tasks+=('[ "@TYPE@" == "android-ndk" ] && zip -j "$bdir/@HOST@@API@-libccidtwin.zip" -xi "@PREFIX@/lib/pcsc/drivers/serial/libccidtwin.so";'); LIB_CCID_tasks+=('[ "@TYPE@" == "android-ndk" ] && zip -j "$bdir/@HOST@@API@-libccidplist.zip" -xi "@PREFIX@/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist";'); -# zlib 1.2.11 +# zlib LIB_ZLIB="1"; LIB_ZLIB_beta="0"; LIB_ZLIB_name="zlib";