From 401e7f3d82db7d0cbc7fc6eb4f70caa47b9bc57c Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 09 Oct 2022 21:20:14 +0800
Subject: [PATCH] update setup_tools.sh  to remove buildroot

---
 tools/setup_tools.sh |   41 ++---------------------------------------
 1 files changed, 2 insertions(+), 39 deletions(-)

diff --git a/tools/setup_tools.sh b/tools/setup_tools.sh
index 8c80b6a..bf0fba5 100755
--- a/tools/setup_tools.sh
+++ b/tools/setup_tools.sh
@@ -2,8 +2,6 @@
 # This shell script used to setup imx6ull build envrionment
 #
 
-LYFTP_PUB=http://wekei-iot.com:2211/imx/igkboard/tools/lintools
-
 # display in yellow
 function pr_warn() {
     echo -e "\033[40;33m --W-- $1 \033[0m\n"
@@ -69,49 +67,16 @@
         binfmt-support qemu qemu-user-static debootstrap debian-archive-keyring "
 
     apt install -y $devtools
-
-    #sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-9 10
-}
-
-function install_buildroot()
-{
-    BUILDROOT_PATH=/opt/buildroot
-    BUILDROOT_NAME=cortexA7
-
-    BUILDROOT_VER=buildroot-2021.02.7-cortexA7
-    BUILDROOT_TAR=${BUILDROOT_VER}.tar.bz2
-    BUILDROOT_DLADDR=${LYFTP_PUB}/$BUILDROOT_TAR
-
-    if [ -d ${BUILDROOT_PATH}/${BUILDROOT_NAME} ] ; then
-        pr_warn "Buildroot already installed to $BUILDROOT_PATH/$BUILDROOT_NAME"
-        return 0;
-    fi
-
-    mkdir -p ${BUILDROOT_PATH}
-
-    if [ ! -f $BUILDROOT_TAR ] ; then
-        pr_info "download $BUILDROOT_VER now..."
-        wget -c $BUILDROOT_DLADDR
-    fi
-
-    pr_info "install $BUILDROOT_VER to $BUILDROOT_PATH/$BUILDROOT_NAME now..."
-    tar -xjf ${BUILDROOT_TAR} -C ${BUILDROOT_PATH}
-
-    $BUILDROOT_PATH/$BUILDROOT_NAME/bin/arm-linux-gcc -v
-
-    pr_info "Cross compiler: $BUILDROOT_PATH/$BUILDROOT_NAME/bin/arm-linux-"
-
-    rm -f ${BUILDROOT_TAR}
 }
 
 # NXP document suggest cross compiler from ARM Developer:
 #   https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
 function install_crosstool()
 {
-    ARMTOOL_VER=11.2-2022.02
+    ARMTOOL_VER=10.3-2021.07
     ARMTOOL_NAME=gcc-arm-$ARMTOOL_VER
     ARMTOOL_PACK=${ARMTOOL_NAME}-`uname -p`-arm-none-linux-gnueabihf
-    ARMTOOL_URL=https://developer.arm.com/-/media/Files/downloads/gnu/$ARMTOOL_VER/binrel/
+    ARMTOOL_URL=https://developer.arm.com/-/media/Files/downloads/gnu-a/$ARMTOOL_VER/binrel/
 
     if [ -d /opt/$ARMTOOL_NAME ]  ; then
         pr_info "$ARMTOOL_NAME crosstool already installed, skip it"
@@ -142,6 +107,4 @@
 install_devtools
 
 install_crosstool
-
-#install_buildroot
 

--
Gitblit v1.9.1