From 69d0972fa8b82065a67566b74ecae8585d9c68c1 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Tue, 27 Aug 2019 00:55:11 +0800 Subject: [PATCH] update linux-bsp build shell script, fix u-boot update crosstool bug --- tools/setup_env.sh | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/setup_env.sh b/tools/setup_env.sh index dcd3ea5..32748a8 100755 --- a/tools/setup_env.sh +++ b/tools/setup_env.sh @@ -7,8 +7,6 @@ LYFTP_PUB=ftp://master.iot-yun.club/pub/ -set -e - function sudo_banner() { if [ `id -u` != 0 ] ; then @@ -29,6 +27,7 @@ function prepare_instpath() { if [ -w /apps -a -w /opt ] ; then + msg_banner "Install path [/apps and /opt] already setup, skip it" return ; fi @@ -47,8 +46,11 @@ { mkimage -V > /dev/null 2>&1 if [ $? == 0 ] ; then + msg_banner "All development system tools already installed, skip it" return 0; fi + + msg_banner "start apt-get install system devlopment tools(commands)" systools="gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat \ libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 \ @@ -57,7 +59,6 @@ devtools="u-boot-tools mtd-utils device-tree-compiler" - msg_banner "start apt-get install system devlopment tools(commands)" sudo_banner @@ -123,8 +124,10 @@ install_systools -#install_crosstool +# u-boot must use arm-linux-gcc 4.9 +install_crosstool +# bootstrap and linux kernel use arm-linux-gcc 7.4.0 in buildroot install_buildroot exit; -- Gitblit v1.9.1