in the previous log , I summed up the download of the Android source code you provide a method, here to briefly summarize the kernel download method. Refer to the introduction here:http://source.android.com/source/building-kernels.html#downloading-sources , download the kernel source code is relatively simple. I download it here altogether 1G more. In Terminal input:
$ git clone https://android.googlesource.com/kernel/common.git
If you do not specify a folder name, clone directly to the common folder. Into this folder, the LS command can not see any code, in fact, it is very simple, input:
$ git branch-a
you can see all the names of the branch, and the name of the branch now, we pick a branch, for example I enter:
$ git checkout-b android-2.6.39 origin/android-2.6.39
after running, we found that there are a lot of source code under the folder, and then enter the previous command, you can see the current under 2.6.39. In addition, if you need source code and kernel at the same time download, you can refer to the user at the end of the log method:http://blog.csdn.net/sakulafly/article/details/8466702