美文网首页
repo init和sync命令的实用小技巧

repo init和sync命令的实用小技巧

作者: 阿群1986 | 来源:发表于2018-07-09 12:47 被阅读210次

以下是安卓5.1系统固件编译的学习笔记

首先选择manifest源,一般直接使用清华或中科大的镜像源
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest是清华提供的镜像源
repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest是中国科学技术大学的镜像源

repo init推荐使用-b 分支标签--depth=1--platform=auto这几个选项加快速度

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-5.1.1_r9 --depth=1 --platform=auto

repo sync推荐使用--current-branch选项加快速度

repo sync --current-branch

另外:中科大限制了每个用户最多使用4线程,因此指定-j8选项并不能提高下载速度。

相关文章

网友评论

      本文标题:repo init和sync命令的实用小技巧

      本文链接:https://www.haomeiwen.com/subject/bpwzuftx.html