Where is the git repo of Android's kernel source?

依然范特西╮ 提交于 2019-12-21 20:14:51

问题


I want to build a kernel for my device from source, however I'm unable to find the git repo of the kernel source.

All I found is this:

git://android.git.kernel.org/kernel/common.git

But however it seems to be deprecated after the kernel.org fuss recently, with git prompting that

fatal: The remote end hung up unexpectedly

Are they moving to somewhere or nowhere?


回答1:


What was at git://android.git.kernel.org/ can now be found at https://android.googlesource.com/.

I did the replacement in your URL, and this is the result:

$ git ls-remote https://android.googlesource.com/kernel/common.git
844e64ac186e89d7721bcf6d98cbbce8e1002839    refs/heads/android-2.6.39
0d8f32b7e8e99f593d7d7ff1afac4e6320e1d5ab    refs/heads/android-3.0

I do not know if this is what you were looking for, but it is worth a look.




回答2:


As the docs on Android say you must use their own custom tool for handling Git called repo.

  1. You need to make a directory where your repositories will be installed.
  2. curl and chmod the shell script
  3. repo sync # this will take a lot of time
  4. source build/envsetup.sh
  5. lunch
  6. make -jN # where N is the number of cpus * the number of cores per cpu you have * 1.5


来源:https://stackoverflow.com/questions/8110867/where-is-the-git-repo-of-androids-kernel-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!