<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 13, 2015 at 4:46 PM, Christopher Larson <span dir="ltr"><<a href="mailto:kergoth@gmail.com" target="_blank">kergoth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":26w" class="a3s" style="overflow:hidden">From: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
<br>
Please review the following changes for suitability for inclusion. If you have<br>
any objections or suggestions for improvement, please respond to the patches. If<br>
you agree with the changes, please provide your Acked-by.<br>
<br>
This only implements support for shallow mirror tarballs, not shallow clones.<br>
<br>
The mirror tarball filename includes branch, revision, and depth. To enable,<br>
use the `BB_GIT_SHALLOW` variable, or `BB_GIT_SHALLOW_<name>` for specific<br>
URLs. This variable can hold either a clone depth (e.g. `1` to just get<br>
SRCREV), or a ref or commit, in which case we keep history up to that commit.<br>
<br>
The shallow support will not, at this time, function correctly for<br>
linux-yocto, due to its branching scheme & validation.<br>
<br>
Example:<br>
<br>
BB_GIT_SHALLOW ?= "1"<br>
BB_GIT_SHALLOW_pn-linux-yocto = ""<br>
BB_GIT_SHALLOW_pn-linux-mel_mx6 = "v3.14"<br>
BB_GIT_SHALLOW_pn-testrepo = "testbranch"<br>
<br>
This implementation will attempt to fetch a full mirror tarball if it was<br>
unable to fetch a shallow tarball. If `BB_GIT_SHALLOW` and<br>
`BB_GENERATE_MIRROR_TARBALLS` are enabled for a given recipe, a shallow<br>
tarball will be emitted.</div></blockquote></div><br>I forgot to mention, this implements [YOCTO #7958](<a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=7958">https://bugzilla.yoctoproject.org/show_bug.cgi?id=7958</a>).<br>-- <br><div class="gmail_signature"><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div></div>
</div></div>