1、下载repo工具
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ./repo
cp repo /bin/repo
chmod a+x /bin/repo
2、下载Android源码
1)
repo init -u git://android.git.linaro.org/platform/manifest -b android-4.4.2_r1
2)
vim .repo/manifest.xml
fetch="git://android.git.linaro.org" />
3)
repo sync
3、下载kernel源码
git clone git://android.git.linaro.org/kernel/goldfish.git