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 WIFI模块解析
  2. ok6410开发板android底层驱动模块编写,出现insmod:init_module ‘
  3. Android 模块通信—— EventBus
  4. 详解Android 目录结构
  5. Android帧缓冲区(Frame Buffer)硬件抽象层(HAL)模块Gralloc的实现原
  6. Android入门教程(四)之-------->Android工程目录结构介绍

随机推荐

  1. android控件的对齐方式(转)
  2. Android(安卓)Design 4.4中文版发布
  3. Android界面布局——视图/容器易混淆点总
  4. Android(安卓)SQLite
  5. Android(安卓)TextView属性详解
  6. 重新解压打包android 根文件系统 ramdisk
  7. android layout属性介绍
  8. android访问服务器端上传及服务器端接收
  9. Android(安卓)上Camera分析
  10. Android的android:clipChildren属性