I’ve just cloned the Android kernel (via git clone) repository but for some reason, none of the source files are there. Instead there is just a massive .git folder, which I think has the kernel source code in it. How do I ‘unpack’ that git repository so I can get a workable source tree?
-
The exact command I’ve used was
git clone git://android.git.kernel.org/kernel/common.git android-kernel. -
git config core.barereturnsfalse -
git branchreturns* master -
git checkout masterreturnsAlready on 'master
The files seem to be there but they are packed. I really don’t care about preserving integrity of the repository, I just want the source tree, without any of that stupid git crap.
In android they use their own tooling which uses git under the hood:
I am not sure how to get a kernel built working if you directly clone git repo, for their own tooling here are the docs:
http://source.android.com/source/downloading.html