Chinaunix首页 | 论坛 | 博客
  • 博客访问: 281313
  • 博文数量: 68
  • 博客积分: 1121
  • 博客等级: 少尉
  • 技术积分: 634
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-01 09:43
文章分类
文章存档

2014年(1)

2013年(8)

2012年(37)

2011年(22)

分类: 嵌入式

2012-10-30 10:31:26

平时只用mm或者mm -B,今天看到这个博客转一下,原来效率还是可以再提高!

之前每次修改BoardConfig.mk后,都傻傻的先make clean然后重新编译,这样浪费的时间不计其数。后来忍受不了这种效率,Google了一下,果然不出所料是可以模块独立编译的。

1、进入Android源码根目录,执行source build/envsetup.sh;

2、可以执行mm、mmm等模块编译命令了。如要编译audioflinger,则执行mmm frameworks/base/services/audioflinger/ -B即可。

3、make -snod重新生成system.img映像。

 

将envsetup.sh的一些注释摘下来如下:

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- 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.

阅读(1713) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~