1.下载过Android整套源代码的亲应该很熟悉的一个操作就是product编译前的几个步骤,
source build/envsetup.sh
lunch $ComboName
make -j4
2.那么第一步source的envsetup.sh有些什么作用呢?让我们来看一下envsetup.sh中的内容,
其实其就是一些shell脚本方法的集合,方便平台debug的开发者的一些日常工作。如果要
查阅该脚本都提供了哪些方法可以在source之后直接hmm查看帮助:
$ hmm
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- lunch: lunch <product_name>-<build_variant>
- tapas: tapas [<App1> <App2> ...] [arm|x86|mips|armv5|arm64|x86_64|mips64] [eng|userdebug|user]
- 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, but not their dependencies.
- mmm: Builds all of the modules in the supplied directories, but not their dependencies.
To limit the modules being built use