From: Shuanglei Tao Date: Mon, 3 Sep 2018 10:54:37 +0000 (+0800) Subject: scripts: i686 -> i386 X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=5aa6b8387cc626c1bd1b84bdf466add12495eda6;p=ttyd.git scripts: i686 -> i386 --- diff --git a/scripts/cross-build.sh b/scripts/cross-build.sh index 2df4fe4..5561ac9 100755 --- a/scripts/cross-build.sh +++ b/scripts/cross-build.sh @@ -2,9 +2,9 @@ # # This script should be run inside the tsl0922/musl-cross docker image # - set -eo pipefail +CROSS_ROOT="${CROSS_ROOT:-/opt/cross}" STAGE_ROOT="${STAGE_ROOT:-/opt/stage}" BUILD_ROOT="${BUILD_ROOT:-/opt/build}" @@ -40,7 +40,7 @@ build_openssl() { } install_sys_queue_h() { - curl -sLo /opt/cross/$TARGET/include/sys/queue.h "https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=misc/sys/queue.h;hb=HEAD" + curl -sLo $CROSS_ROOT/$TARGET/include/sys/queue.h "https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=misc/sys/queue.h;hb=HEAD" } install_cmake_cross_file() { @@ -107,7 +107,7 @@ build() { } TARGETS=( - i686 i686-linux-musl + i386 i386-linux-musl x86_64 x86_64-linux-musl arm arm-linux-musleabi armhf arm-linux-musleabihf