[bitbake-devel] [RFC PATCH 0/5] Implement git shallow mirror tarball support

Martin Jansa martin.jansa at gmail.com
Tue Aug 18 08:45:20 UTC 2015


On Fri, Aug 14, 2015 at 08:57:17AM -0700, Christopher Larson wrote:
> On Thu, Aug 13, 2015 at 4:46 PM, Christopher Larson <kergoth at gmail.com>
> wrote:
> 
> > From: Christopher Larson <chris_larson at mentor.com>
> >
> > Please review the following changes for suitability for inclusion. If you
> > have
> > any objections or suggestions for improvement, please respond to the
> > patches. If
> > you agree with the changes, please provide your Acked-by.
> >
> > This only implements support for shallow mirror tarballs, not shallow
> > clones.
> >
> > The mirror tarball filename includes branch, revision, and depth. To
> > enable,
> > use the `BB_GIT_SHALLOW` variable, or `BB_GIT_SHALLOW_<name>` for specific
> > URLs. This variable can hold either a clone depth (e.g. `1` to just get
> > SRCREV), or a ref or commit, in which case we keep history up to that
> > commit.
> >
> > The shallow support will not, at this time, function correctly for
> > linux-yocto, due to its branching scheme & validation.
> >
> > Example:
> >
> >     BB_GIT_SHALLOW ?= "1"
> >     BB_GIT_SHALLOW_pn-linux-yocto = ""
> >     BB_GIT_SHALLOW_pn-linux-mel_mx6 = "v3.14"
> >     BB_GIT_SHALLOW_pn-testrepo = "testbranch"
> >
> > This implementation will attempt to fetch a full mirror tarball if it was
> > unable to fetch a shallow tarball. If `BB_GIT_SHALLOW` and
> > `BB_GENERATE_MIRROR_TARBALLS` are enabled for a given recipe, a shallow
> > tarball will be emitted.

It would be nice to describe what this implementation does when there is
some local git clone already (will it first try to update it with "git fetch"
or download shallow tarball?)

> >
> 
> I forgot to mention, this implements [YOCTO #7958](
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7958).

it also looks like more proper fix for [YOCTO #1511](
https://bugzilla.yoctoproject.org/show_bug.cgi?id=1511).

> -- 
> Christopher Larson
> kergoth at gmail dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics

> -- 
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel


-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20150818/4e3eef4a/attachment-0002.sig>


More information about the bitbake-devel mailing list