cts源码下载

来源:互联网 发布:秒杀红包软件 编辑:程序博客网 时间:2024/04/28 08:15

1、首先进入root目录(“~”目录而不是“/”)

2、安装git与curl

sudo apt-get install git-core curl

3、安装repo脚本

在root目录下建bin目录,curl http://git-repo.googlecode.com/files/repo-1.12 > ~/bin/repo安装repo到bin目录

4、修改/root/bin/repo文件,将第五行中REPO_URL='https://code.google.com/p/git-repo/'改为REPO_URL='http://code.google.com/p/git-repo/'

5、向PATH中添加 bin路径,export PATH=$PATH:~/bin,chmod a+x ~/bin/repo修改权限

6、在bin目录中新建cts源码目录/root/bin/cts

7、执行repo init -u git://android.git.linaro.org/platform/manifest.git列出tag

8、执行repo init -u git://android.git.linaro.org/platform/manifest.git -b android-cts-2.3_r12

9、执行repo sync开始下载,期间出现name和mail随便输就行了


原创粉丝点击