Android编译模块

Android中的一个应用程序或模块可以单独编译,编译后需要重新生成system.img。
首先在Android目录下运行
$ . build/envsetup.sh 或者
$ source build/envsetup.sh ,然后就会多出几个可用的命令:

- croot: Changes directory to the top of the tree.
- 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.
- cgrep: Greps on all local C/C++ files.
- jgrep: Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir: Go to the directory containing a file.
- printconfig: 当前build的配置情况.

可以使用 --help查看用法。
如:在修改了某一个模块以后,可以使用 $ mmm <目录> 来重新编译所有在<目录>中的所有模块,使用 $ mm 编译当前目录中的所有模块。
编完之后,即修改了Android系统以后,可以使用 $ make snod 重新生成system.img


更多相关文章

  1. 高通Android智能平台环境搭建_编译流程分析
  2. Android(安卓)WIFI模块解析
  3. Windows平台上编译OpenCV的Android版本
  4. 在Ubuntu 9.10下编译Android源码
  5. MAC下编译arm架构的tcpdump
  6. Android中的Ninja简介
  7. ok6410开发板android底层驱动模块编写,出现insmod:init_module ‘
  8. 加快Android单模块编译
  9. .Net程序员玩转Android系列之一~Java快速入门

随机推荐

  1. Android(安卓)开发常用颜色的编号代码
  2. android source code的获取及make
  3. 【IOS】实现IOS版的抽屉效果(点击,拖拽滑动
  4. android存储本地数据大全
  5. Android开关机源码分析
  6. [React Native Android(安卓)安利系列]样
  7. android shape corners 设置无效的解决
  8. Android(安卓)XML文件使用
  9. 怎样动态更换APP图标
  10. android Vold Usb