All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Szymaniak <jon.szymaniak@gmail.com>
To: yocto@yoctoproject.org
Cc: Jon Szymaniak <jon.szymaniak@gmail.com>
Subject: [meta-raspberrypi][PATCH] firmware.inc: Fetch a zip instead of cloning a git repo
Date: Fri, 26 Jun 2015 00:16:28 -0400	[thread overview]
Message-ID: <1435292188-29514-1-git-send-email-jon.szymaniak@gmail.com> (raw)

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.

This resolves some do_fetch() failures I've seen for bcm2835-bootfiles
in which the clone operation takes a very long time, and the connection
eventually hangs and errors out.

Signed-off-by: Jon Szymaniak <jon.szymaniak@gmail.com>
---
 recipes-bsp/common/firmware.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/common/firmware.inc b/recipes-bsp/common/firmware.inc
index ad3176a..5830bb0 100644
--- a/recipes-bsp/common/firmware.inc
+++ b/recipes-bsp/common/firmware.inc
@@ -1,8 +1,10 @@
 RPIFW_SRCREV ?= "e42a747e8d5c4a2fb3e837d0924c7cc39999936a"
 RPIFW_DATE ?= "20150206"
-RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master"
-RPIFW_S ?= "${WORKDIR}/git"
+RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/${RPIFW_SRCREV}.zip"
+RPIFW_S ?= "${WORKDIR}/firmware-${RPIFW_SRCREV}"
 
 SRC_URI = "${RPIFW_SRC_URI}"
+SRC_URI[md5sum] = "a0cd8bc3a82fa708e26da62350fcf485"
+SRC_URI[sha256sum] = "eebf3bbe2fda533da4b44e713090428e6c14306445543243ae03bca774894840"
 SRCREV = "${RPIFW_SRCREV}"
 PV = "${RPIFW_DATE}"
-- 
2.1.4



             reply	other threads:[~2015-06-26  4:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26  4:16 Jon Szymaniak [this message]
2015-06-26  8:31 ` [meta-raspberrypi][PATCH] firmware.inc: Fetch a zip instead of cloning a git repo Burton, Ross
2015-06-26  9:07   ` Gary Thomas
2015-06-26  9:09     ` Burton, Ross
2015-06-26 14:16   ` Jon Szymaniak
2015-06-26 14:19     ` Burton, Ross
2015-06-26 14:42       ` Jon Szymaniak
2015-06-26 14:46         ` Burton, Ross
2015-07-05 19:19     ` Petter Mabäcker
2015-07-06  5:19   ` Clemens Lang
2015-07-06  8:40     ` Anders Darander
2015-07-06  9:48       ` Nikolay Dimitrov
2015-07-06 10:58         ` Paul Eggleton
2015-07-09 20:13           ` Andrei Gherzan
2015-07-10  8:47             ` Nikolay Dimitrov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435292188-29514-1-git-send-email-jon.szymaniak@gmail.com \
    --to=jon.szymaniak@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.