This post will introduce on how to build the compiler environment.
Step one : Install the Ubuntu12.04.
You can use the CD image to finish the installation.


After finishing the installation. Update the system
Step two:
Download the SDK from the official website and buid the compiler environment.
You can download the SDK using git or download the compressed package directory.
The SDK website is : 百度网盘-链接不存在
While finish the download,you can follow the official steps to accomplish the compiler environment.
You can also use the scripts of java6.sh,ubuntu1204_evn.sh and arm.sh to install the environment.
- Enter the command:
./java6.sh
This command will install the JDK6(During the installation you may input "y"or “yes” to finish it)

Then the JDK installation is finished.
- Enter the command :
./ubuntu1204_evn.sh
Install the libs and packages which nedds for the compiling .
(During the installation you may input “y” or “yes” to finish it)

- Enter the command:
./arm.sh
Install the cross compile tools and the software package which needs for the kernel compiling.

Now, you have finished the compile environment installation .
4.If you download the SDK is compress package. You should check the MD5 code .
$ md5sum /path/to/firefly-rk3288_sdk_git.tar.gz
0db2e0c5c2a1cb344f923cd538ed9443 firefly-rk3288_sdk_git.tar.gz
- Decompress the SDK
After the SDK compression, you will get a “.git” file. This file is the management of git project. There is no source code in your directory. You
$git reset
After run this command you can see the structure of source code.
- Synchronous the source code
git remote add bitbucket <!-- m --><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Firefly/firefly-rk3288.git"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire"><!-- m --></a><a class="postlink" href="https://TeeFirefly@bitbucket.org/T-Fire">https://TeeFirefly@bitbucket.org/T-Fire</a><!-- m --><!-- m --><!-- m --><!-- m --><!-- m --><!-- m --> ... rk3288.git<!-- m -->
git pull bitbucket master:master

Now ,you have get the source code.
Go to the source code path
1.Source code compiling(Note:the kernel must be compiled first or android compiling will occur errors)
After go into the kernel path,run the command:
make firefly-rk3288_beta_defconfigmake -j8 firefly-rk3288_beta.img

Then the kernel is build successfully.
2.Android compiling
Go into the root directory of SDK,run the command:
source build/envsetup.sh && lunch rk3288-eng && make -j8
This will spend a long time. I use the lenovo L440 I5+2G laptop,it needs about 4 hours to compile.

Now , you have finished the android compiling.