官方定义: 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 directo…
参考: https://wiki.cyanogenmod.org/w/Envsetup_help 它是一个.sh文件,用source后就生成android编译相关函数,具体如下. 速查 Invoking $ source build/envsetup.sh from your shell adds several functions to the build environment. These are listed below with short descriptions. Referenc…
通过上篇文章,我们分析了编译android时source build/envsetup.sh和lunch命令,在执行完上述两个命令后, 我们就可以进行编译android了. 1. make 执行make命令的结果就是去执行当前目录下的Makefile文件,我们来看下它的内容: ### DO NOT EDIT THIS FILE ### include build/core/main.mk ### DO NOT EDIT THIS FILE ### 呵呵,看到上面 的内容,我们都会笑,这是我见过…
m:编译整个安卓系统 makes from the top of the tree mm:编译当前目录下的模块,当前目录下需要有Android.mk这个makefile文件,否则就往上找最近的Android.mk文件. builds all of the moudles in the current directory mma:当前目录新增或删除文件后,可以用mma重新编译. mmm:编译指定路径下的模块,指定的路径下面需要有Android.mk这个makefile文件 builds all o…