To clone one of these trees, install , and run:git clone git://android.git.kernel.org/ + project path.
To clone the entire platform, install , and run:mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
For more information about , see an
打算全部下载回来再说,先下载repo脚本
更多git和repo使用说明看这里:
curl >repo
chmod +x repo
./repo init -u git://android.git.kernel.org/platform/manifest.git
gpg: keyring `/home/wen/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/wen/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/wen/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <>" imported
gpg: Total number processed: 1
gpg: imported: 1
Getting repo ...
from git://android.git.kernel.org/tools/repo.git
./repo sync
和远程服务器同步,过程比较长,全部代码下来好几Gb
打算编译一个vmware虚拟机上能运行的
目前google已经出e pc支持的版本了
切换到cupcake 分支,master分支不是太稳定
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b
cupcake
$ repo sync
同步后,很多的更改会uncommit
建立一个local_manifest.xml
$ vi ./.repo/local_manifest.xml
$ repo sync
... A new repo command ( 1.8) is available.
... You should upgrade soon:
cp /home/invain/bin_x86/mydroid/.repo/repo/repo /home/invain/bin/
repo
Initializing project platform/vendor/asus/eee_701 ...
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 33 (delta 2), reused 33 (delta 2)
Unpacking objects: 100% (33/33), done.
From git://android.git.kernel.org/platform/vendor/asus/eee_701
* [new branch] cupcake -> korg/cupcake
* [new branch] master -> korg/master