1. 安装相关软件
通过yum升级和安装
gnupg flex bison gperf zip curl
2. 安装repo
curl http://android.git.kernel.org/repo >~/repo (但我没有成功,需要把http://删掉)
chmod 777 ~/repo
修改repo的内容git改成http
REPO_URL='http://android.git.kernel.org/tools/repo.git' (但我没有成功,还是用git)
mv repo /usr/bin/
3. init repo 初始化repo
mkdir -P /local/root/android
进入android目录
repo init -u http://android.git.kernel.org/platform/manifest.git
中间过程:
From http://android.git.kernel.org/platform/manifest
* [new tag] android-1.0 -> android-1.0
Your Name [root]:
Your Email [root@flyingqr.localdomain]:
Your identity is:
is this correct [y/n]? y
repo initialized in /local/root/android
这说明本地的版本库已经更新好了
5. 开始下载源码repo sync
如果中间到某一步没有反映了,就Ctrl+C终止,然后repo sync继续,repo支持断点续传