[yocto] [meta-raspberrypi][PATCH] firmware.inc: fetch from SVN instead of Git
Nikolay Dimitrov
picmaster at mail.bg
Mon Jul 6 09:18:33 PDT 2015
Hi Jonathan,
On 07/06/2015 04:41 PM, Jonathan Liu wrote:
> Hi Nikolay,
>
> On 4/07/2015 3:29 PM, Nikolay Dimitrov wrote:
>> Hi Jonathan,
>>
>> On 07/04/2015 06:48 AM, Jonathan Liu wrote:
>>> Reduces the download time significantly.
>>>
>>> Signed-off-by: Jonathan Liu <net147 at gmail.com>
>>> ---
>>> recipes-bsp/common/firmware.inc | 6 +++---
>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/recipes-bsp/common/firmware.inc
>>> b/recipes-bsp/common/firmware.inc
>>> index ad3176a..100df3a 100644
>>> --- a/recipes-bsp/common/firmware.inc
>>> +++ b/recipes-bsp/common/firmware.inc
>>> @@ -1,7 +1,7 @@
>>> -RPIFW_SRCREV ?= "e42a747e8d5c4a2fb3e837d0924c7cc39999936a"
>>> +RPIFW_SRCREV ?= "461"
>>> RPIFW_DATE ?= "20150206"
>>> -RPIFW_SRC_URI ?=
>>> "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master"
>>> -RPIFW_S ?= "${WORKDIR}/git"
>>> +RPIFW_SRC_URI ?=
>>> "svn://github.com/raspberrypi/firmware;protocol=https;module=trunk"
>>> +RPIFW_S ?= "${WORKDIR}/trunk"
>>>
>>> SRC_URI = "${RPIFW_SRC_URI}"
>>> SRCREV = "${RPIFW_SRCREV}"
>>>
>>
>> Just tested the download times for this repo:
>>
>> git (deep clone): 24m
>> svn: 3m8s
>> git (shallow clone): 40s
>>
>> Isn't it possible to use "--depth 1" for git clone? I would rather
>> prefer seeing this instead of just giving up and going back to svn...
>>
>> Regards,
>> Nikolay
> How would you clone a specific Git revision using --depth 1?
>
> Regards,
> Jonathan
git fetch --depth=1 git://repo.git $SHA1
Available in the latest git code.
A point to be made is that this feature requires cooperation from the
server side (uploadpack.allowReachableSHA1InWant config variable) which
can complicate thing somewhat, but we can probably start pushing the
server provider to accelerate the process :D.
Regards,
Nikolay
More information about the yocto
mailing list