关于android编译模块命令mmm

来源:互联网 发布:淘宝怎样重新申请退款 编辑:程序博客网 时间:2024/06/06 01:23

编译模块

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

- croot:   Changes directoryto 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 localC/C++ files.
- jgrep:   Greps on all localJava files.
- resgrep: Greps on all local res/*.xml files.
- godir:   Go to the directorycontaining a file.
- printconfig: 当前build的配置情况.
可以使用 --help查看用法。
如:在修改了某一个模块以后,可以使用 $ mmm<目录> 来重新编译所有在<目录>中的所有模块,使用 $mm  编译当前目录中的所有模块。
编完之后,即修改了Android系统以后,可以使用 $ make snod 重新生成system.img

0 0