can't see the kernel source,why

688 views
Skip to first unread message

tao zhang

unread,
Nov 29, 2011, 5:07:00 AM11/29/11
to Android Building
hi:
i am a newer to android.i want to build the android kernel.i clone the
git repository,using "git clone http://android.googlesource.com/kernel/common.git".when
it is done.i got a dir called common,but there is just a .git dir
entry in in,which size is 484MiB.i found a git package in the path
common/.git/objects/pack/ and wanted to unpack it using git unpack-
objects.But i got nothing when the unpacking finished.
my question is:
how can i get the source file of the andorid kernel?where is my
fault?
thanks!

Jean-Baptiste Queru

unread,
Nov 29, 2011, 11:51:16 AM11/29/11
to android-...@googlegroups.com
run git branch -a to see which branches are available, then git
checkout on the one you want.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

San Xi

unread,
Nov 30, 2011, 12:06:27 AM11/30/11
to android-...@googlegroups.com
I met the same problem before. The default branch is master, but had nothing. I had to checkout manually.

2011/11/30 Jean-Baptiste Queru <j...@android.com>

Jean-Baptiste Queru

unread,
Nov 30, 2011, 11:24:27 AM11/30/11
to android-...@googlegroups.com
That's done on purpose. There's no notion of master branch in the
kernel (and there's not even a notion of current development branch),
but the various tools we use don't work if there's no master branch,
so we add an empty master branch to make the tools happy.

JBQ

San Xi

unread,
Nov 30, 2011, 11:58:40 PM11/30/11
to android-...@googlegroups.com
OK, I see.

2011/12/1 Jean-Baptiste Queru <j...@android.com>

Mark Graybill

unread,
May 20, 2014, 9:31:15 AM5/20/14
to android-...@googlegroups.com, j...@android.com
Jean-Baptiste,

I just ran into the same problem.  I'd suggest changing the language on the web page to clarify that a branch has to be checked out, and that the master branch is empty.

Thanks,

Mark

Jean-Baptiste Queru

unread,
May 20, 2014, 12:38:41 PM5/20/14
to android-...@googlegroups.com
I'm not maintaining that documentation any more, but AFAIK the source files for s.a.c are open for contribution at https://android.googlesource.com/platform/docs/source.android.com/+/master/src/source/building-kernels.jd

JBQ

   
--

Jean-Baptiste M. "JBQ" Quéru
Architect, Mobile, Yahoo
On Tuesday, May 20, 2014 8:02 AM, Mark Graybill <mark...@gmail.com> wrote:


Jean-Baptiste,

I just ran into the same problem.  I'd suggest changing the language on the web page to clarify that a branch has to be checked out, and that the master branch is empty.

Thanks,

Mark

On Wednesday, November 30, 2011 8:24:27 AM UTC-8, Jean-Baptiste Queru wrote:
That's done on purpose. There's no notion of master branch in the
kernel (and there's not even a notion of current development branch),
but the various tools we use don't work if there's no master branch,
so we add an empty master branch to make the tools happy.
JBQ
On Tue, Nov 29, 2011 at 9:06 PM, San Xi <sanker...@gmail.com> wrote:
> I met the same problem before. The default branch is master, but had
> nothing. I had to checkout manually.
>
> 2011/11/30 Jean-Baptiste Queru <j...@android.com>
>>
>> run git branch -a to see which branches are available, then git
>> checkout on the one you want.
>>
>> JBQ
>>
>> On Tue, Nov 29, 2011 at 2:07 AM, tao zhang <taozh...@gmail.com> wrote:
>> > hi:
>> > i am a newer to android.i want to build the android kernel.i clone the
>> > git repository,using "git clone
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages