安装repo
$ sudo apt-get install curl -y
$ curl "http://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable" > ~/bin/repo
$ chmod +x ~/bin/repo
$ echo "REPO_BIN=~/bin" >> ~/.bashrc
$ echo "PATH=$REPO_BIN:$PATH" >> ~/.bashrc
$ . ~/.bashrc