Setup gcc Toolchain
Set environment variables:
$ cd <WORKDIR>/Toolchain
$ tar -xvjf \
gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2
$ export PATH=$PATH:<WORKDIR>/Toolchain/\
gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin
$ export CROSS_COMPILE=arm-linux-gnueabihf-
Type "arm" then press TAB to check if it’s correctly set. This setting is valid only for the current terminal, for a permanent modification, please modify user profiles.
Install other necessary tools (ubuntu-line installation as the example) :
$ sudo apt-get install build-essential git-core libncurses5-dev \
flex bison texinfo zip unzip zlib1g-dev gettext \
gperf libsdl-dev libesd0-dev libwxgtk2.6-dev \
uboot-mkimage \
g++ xz-utils