博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
单独编译Android源代码中的模块
阅读量:4311 次
发布时间:2019-06-06

本文共 859 字,大约阅读时间需要 2 分钟。

  $ .  ./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.
     
  这里我们只关注mmm命令,也就是可以用它来编译指定目录的所有模块,通常这个目录只包含一个模块。
      
  
      
$ mmm  packages/apps/Email/
      编译完成之后,就可以在out/target/product/generic/system/app目录下看到Email.apk文件了。Android系统自带的App都放在这个目录下。
Android系统的一些可执行文件,例如C编译的可执行文件,放在out/target/product/generic/system/bin目录下,
动态链接库文件放在 out/target/product/generic/system/lib目录下,
硬件抽象层(HAL)接口文件放在 out/target/product/generic/system/lib/hw目录下。
 
      编译好模块后,还要重新打包一下system.img文件
      
$ make snod
      
 

转载于:https://www.cnblogs.com/7725657/p/5546249.html

你可能感兴趣的文章
常用排序算法
查看>>
DOM(文档对象模型)
查看>>
为什么要安全域,哪些区域需要单独划分安全域
查看>>
【BZOJ5297】【CQOI2018】社交网络(矩阵树定理)
查看>>
【BZOJ1921】【CTSC2010】珠宝商(点分治,后缀自动机)
查看>>
追寻生命的意义
查看>>
Something wrong with iPad
查看>>
新浪某个tab 页模仿
查看>>
PHP课后小结 2017.12.22
查看>>
管理信息系统作业
查看>>
jQuery 菜单插件
查看>>
SQL函数汇总(MySQL教材)
查看>>
软件需求的薛定谔之猫
查看>>
字符串删除指定符号(不限位置)
查看>>
ArrayList、LinkedList、Vector的区别
查看>>
Hive常用函数 傻瓜学习笔记 附完整示例
查看>>
排列组合算法(基于c++实现)
查看>>
控制器跳转:tabbarcontroller怎么写代码切换视图?
查看>>
数组的常用排序
查看>>
异常(Exception)
查看>>