问题
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.
- You need to make a directory where your repositories will be installed.
- curl and chmod the shell script
- repo sync # this will take a lot of time
- source build/envsetup.sh
- lunch
- 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