Android Framework的开发过程中,常常需要选择使用的编译源码命令。
正确的命令往往会让你事半功倍。
1. 完全编译
$ cd ~/android-source-code/
$ make
2. SDK编译
$ cd ~/android-source-code/
$ make sdk
3. 编译系统映像system.img
$ make snod
4. 更新API
$ make update-api
5. 模块编译之mm
$ cd ~/android-source-code/
$ . build/envsetup.sh //注: 是 [点] + [空格] + [build/envsetup.sh]
这样你就可以在当前的Tirminal使用以下命令了
m /* makes from the top of the tree*/
mm /* builds all of the modules in the current directory*/
mmm /* builds all of the modules in the supplied directories*/
6. 模块编译之make
$ make [module name]
本文来自http://blog.csdn.net/luqiang454171826 ,引用必须注明出处!