1.先更新sudo apt-get update
创建sudo apt-get install openjdk-7-jdk java环境
2.git工具 sudo apt-get install git
curl sudo apt-get install curl
3.创建repo( 目录在用户目录的bin之下)
$curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo
$ chmod a+x ~/bin/repo // 给定文件权限
$ PATH=~/bin:$PATH
4.创建源码文件夹同步源码
$ mkdir os
$cd os
$ ~/bin/repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
$ ~/bin/repo sync