[Buildroot] Why not perform a shallow clone?

Patrick Doyle wpdster at gmail.com
Wed Feb 24 19:50:42 UTC 2016


On Wed, Feb 24, 2016 at 2:41 PM, Samuel Martin <s.martin49 at gmail.com> wrote:
> Hi,
>
> On Wed, Feb 24, 2016 at 8:30 PM, Patrick Doyle <wpdster at gmail.com> wrote:
>> So I'm sitting here watching my buildroot make do a complete clone of
>> the Linux kernel, where I have told it that I want a specific sha1
>> commit and I started wondering...
>>
>> Why not do a shallow clone?
> It tries, but cannot (see
> https://git.buildroot.org/buildroot/tree/support/download/git#n34)
>
Oh bummer...

I wonder why git-clone -b doesn't accept a sha1sum.  Oh well.


So how do you folks handle pinning a revision of, for example, the
kernel?  I naively assumed that I would specify
BR2_LINUX_KERNEL_CUSTOM_REPO_URL and
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION, which appears to do what I want,
but it seems wasteful to have to clone the whole Linux repo just to
get that one clone.

I suppose I could tell menuconfig that the (Atmel) kernel I am cloning
is available on github somehow and have the magic "fetch a sha1sum
from github" work.  I'll go think about that for a bit.

--wpd



More information about the buildroot mailing list