[yocto] [meta-raspberrypi][PATCH] firmware.inc: Fetch a zip instead of cloning a git repo

Gary Thomas gary at mlbassoc.com
Fri Jun 26 02:07:05 PDT 2015


On 2015-06-26 02:31, Burton, Ross wrote:
>
> On 26 June 2015 at 05:16, Jon Szymaniak <jon.szymaniak at gmail.com <mailto:jon.szymaniak at gmail.com>> wrote:
>
>     GitHub provides this ability to download repository contents at
>     a specified changeset as a zip file. This is generally *much* quicker
>     than fetching the entire git repository.

Hopefully the zip file is also a bit more manageable - the cached version
of the git tree for this repo is HUGE!

3599813625 Mar  5 11:02 /work/misc/Poky/sources/git2_github.com.raspberrypi.firmware.git.tar.gz

>
> Github also can and will regenerate these tarballs whenever it feels like it, so you'll need to periodically update the checksums.  Obviously as existing developers will tend to
> have the tarballs cached locally, it can be a while before this failure is reported back.
>
> A better solution might be to add support for "depth" to the git fetcher, so you can grab just the commit you are interested in instead of the entire repository.

Is that something that can be in the recipe, or is this ability
something that needs to be added to the bitbake/OE-core infrastructure?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list