GIT 和 repo 使用方法 下载 android-2.6.29 内核
2010-04-21 06:33:00 来源:WEB开发网[root@localhost bin]#cd /usr/local/src/
[root@localhost src]#mkdir project-android
[root@localhost src]#cd project-android/
[root@localhost project-android]#git clone git://android.git.kernel.org/kernel/common.git
这里会下载半天,下载完成之后:
[root@localhost src]#cd common
[root@localhost common]# ls
arch CREDITS drivers include Kbuild MAINTAINERS net samples sound
block crypto firmware init kernel Makefile README scripts usr
COPYING Documentation fs ipc lib mm REPORTING-BUGS security virt
[root@localhost common]# git branch -a
* android-2.6.27
diff
remotes/origin/HEAD -> origin/android-2.6.27
remotes/origin/android-2.6.25
remotes/origin/android-2.6.27
remotes/origin/android-2.6.29
remotes/origin/android-goldfish-2.6.27
remotes/origin/android-goldfish-2.6.29
要想下载2.6.29内核,只要最后执行一下git checkout origin/android-2.6.29
看看代码是不是变成2.6.29的了?我在这郁闷了半天,怎么总是下载2.6.27内核的代码
更多精彩
赞助商链接