From bb06d593ecbee9939a649000c816740486e1fe22 Mon Sep 17 00:00:00 2001 From: Lawrence-Tang Date: Fri, 20 Oct 2023 14:09:29 +0800 Subject: [PATCH] download toolchain in http --- .gitignore | 1 + README.md | 3 +-- install.sh | 9 +++------ 3 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f537cfb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +fa-toolchain.tgz diff --git a/README.md b/README.md index 79e8bba..98120ce 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ ``` sudo apt-get -y update sudo apt-get install -y sudo wget -wget https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh -chmod 755 install.sh +wget https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/cn/install.sh sudo ./install.sh ``` ### Supported Distributions diff --git a/install.sh b/install.sh index 05af741..07b229f 100755 --- a/install.sh +++ b/install.sh @@ -117,11 +117,8 @@ apt-get -y install python3-dev python3-setuptools apt install dwarves lz4 # install friendlyelec-toolchain -[ -d fa-toolchain ] || git clone https://github.com/friendlyarm/prebuilts.git -b master --depth 1 fa-toolchain -(cat fa-toolchain/gcc-x64/toolchain-4.9.3-armhf.tar.gz* | tar xz -C /) -(cat fa-toolchain/gcc-x64/toolchain-6.4-aarch64.tar.gz* | tar xz -C /) -(tar xf fa-toolchain/gcc-x64/toolchain-11.3-aarch64.tar.xz -C /) - -rm -rf fa-toolchain +[ -f fa-toolchain.tgz ] || wget http://112.124.9.243/fa-toolchain.tgz +tar xzf fa-toolchain.tgz -C / +rm -f fa-toolchain.tgz echo "all done."