cts源碼下載

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隨便輸就行了


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章