| | |
| | | |
| | | HOSTARCH := $(shell uname -m | sed -e s/arm.*/arm/) |
| | | |
| | | +CROSS_COMPILE=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSS_COMPILE=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | AS=$(CROSS_COMPILE)gcc |
| | | CC=$(CROSS_COMPILE)gcc |
| | | LD=$(CROSS_COMPILE)ld |
| | |
| | | ######################################################################### |
| | | |
| | | +ARCH=arm |
| | | +CROSS_COMPILE=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSS_COMPILE=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | + |
| | | # set default to nothing for native builds |
| | | ifeq ($(HOSTARCH),$(ARCH)) |
| | |
| | | |
| | | 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 \ |
| | |
| | | |
| | | devtools="u-boot-tools mtd-utils device-tree-compiler" |
| | | |
| | | msg_banner "start apt-get install system devlopment tools(commands)" |
| | | |
| | | sudo_banner |
| | | |
| | |
| | | prepare_instpath |
| | | |
| | | install_systools |
| | | |
| | | #install_crosstool |
| | | |
| | | install_buildroot |
| | | |