android的m、mm、mmm编译命令的使用

android源码目录下的build/envsetup.sh文件,描述编译的命令

- 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. 

要想使用这些命令,首先需要在android源码根目录执行. build/envsetup.sh 脚本设置环境

m:编译所有的模块 
mm:编译当前目录下的模块,当前目录下要有Android.mk文件 
mmm:编译指定路径下的模块,指定路径下要有Android.mk文件 

下面举个例子说明,假设我要编译android下的\hardware\libhardware_legacy\power模块,当前目录为源码根目录,方法如下: 

1、. build/envsetup.sh 
2、mmm hardware/libhardware_legacy/power/ 

或者 : 

1、. build/envsetup.sh 
2、cd hardware/libhardware_legacy/power/ 

3、mm 

更多相关文章

  1. android源码编译出现No private recovery resources for TARGET_
  2. Android(安卓)with the NDK_001
  3. android源码下载,从Android2.2.2到4.2.2的源码整理汇总
  4. android ndk编译x264开源(用于android的ffmpeg中进行软编码)
  5. Android应用程序编译问题
  6. AbstractProcessor注解处理器
  7. 编译android源码6---运行android编译源码
  8. 编译android出错
  9. Error:android-apt plugin is incompatible with the Android(安

随机推荐

  1. [置顶] [Android(安卓)Studio 权威教程]Mac
  2. android 自定义View过程解析
  3. dex 转为 jar
  4. android eclipse 导入工程报错unable to
  5. Android(安卓)中Parcelable的作用 (转载)
  6. Android通信机制之Android架构(一)
  7. android异步处理Handler+Thread使用进阶
  8. Android总结(基础篇)-骚人文客
  9. Android自学笔记(4)
  10. android待机添加电量小部件,点击位置信息