1. 参考MTK6572环境搭建.
2. 安装openjdk7,执行:sudo apt-get install openjdk-7-jdk与sudo apt-get install openjdk-7-jre
3. 设置环境变量: vim ~/.bashrc, 然后修改JAVA_HOME: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
4. 使设置生效: source ~/.bashrc
5. source build/envsetup.sh
6. lunch选择full-htt8783_tb_l1-eng
7. make -j8编译
8. make clean清除
9. mmm packages/apps/Gallery2编译指定目录