| | |
| | | |
| | | LYFTP_PUB=ftp://master.iot-yun.club/pub/ |
| | | |
| | | set -e |
| | | |
| | | function sudo_banner() |
| | | { |
| | | if [ `id -u` != 0 ] ; then |
| | |
| | | function prepare_instpath() |
| | | { |
| | | if [ -w /apps -a -w /opt ] ; then |
| | | msg_banner "Install path [/apps and /opt] already setup, skip it" |
| | | return ; |
| | | fi |
| | | |
| | |
| | | { |
| | | 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 \ |
| | | help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf \ |
| | | automake groff curl lzop asciidoc lib32z1 lib32ncurses5" |
| | | automake groff curl lzop asciidoc lib32z1 lib32ncurses5 libssl-dev" |
| | | |
| | | devtools="u-boot-tools mtd-utils device-tree-compiler" |
| | | |
| | | msg_banner "start apt-get install system devlopment tools(commands)" |
| | | |
| | | sudo_banner |
| | | |
| | |
| | | BUILDROOT_DLADDR=${LYFTP_PUB}/$BUILDROOT_TAR |
| | | |
| | | if [ -d ${BUILDROOT_PATH}/${BUILDROOT_NAME} ] ; then |
| | | LDROOTmsg_banner "$BUILDROOT_VER already installed to $BUILDROOT_PATH/$BUILDROOT_NAME" |
| | | msg_banner "$BUILDROOT_VER already installed to $BUILDROOT_PATH/$BUILDROOT_NAME" |
| | | return 0; |
| | | fi |
| | | |
| | |
| | | |
| | | 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; |