下载代码及编译步骤
$ mkdir ~/xxx
$ cd ~/xxx
$ repo init -u ssh://gerrit帐号@[ip:port/platform/manifest -b 分支名
$ repo sync -c -f --no-tags -j1
#有的仓库下载下来,需要cd到源码目录,比如:
$ cd LINUX/android/
$ build/envsetup.sh
$ lunch
#lunch命令会输出该版本系统支持的多种设备以及对应的发布版本,根据情况选择,比如:
$ 47
$ make -j4
编译过程可能会遇到各种问题,需要安装各种依赖库,
可以配置apt源(比如阿里源)后使用各种apt-get install来安装。
make编译成功后,提示如下:
...
...
...
build completed successfully (02:53:28 (hh:mm:ss)) ####