Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: add SRCREV to do_fetch() hash
@ 2014-09-29 14:40 Ross Burton
  2014-09-29 14:52 ` Maciej Borzecki
  2014-10-07 18:26 ` Khem Raj
  0 siblings, 2 replies; 8+ messages in thread
From: Ross Burton @ 2014-09-29 14:40 UTC (permalink / raw)
  To: openembedded-core

Without this changing just the SRCREV won't re-fetch unless you embed the SRCREV
into PV.

The downside here is that every hash changes, so this causes a full rebuild.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/base.bbclass |    1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index c0d61fe..ff8c633 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -97,6 +97,7 @@ PATH_prepend = "${@extra_path_elements(d)}"
 addtask fetch
 do_fetch[dirs] = "${DL_DIR}"
 do_fetch[file-checksums] = "${@bb.fetch.get_checksum_file_list(d)}"
+do_fetch[vardeps] += "SRCREV"
 python base_do_fetch() {
 
     src_uri = (d.getVar('SRC_URI', True) or "").split()
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-07 18:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29 14:40 [PATCH] base.bbclass: add SRCREV to do_fetch() hash Ross Burton
2014-09-29 14:52 ` Maciej Borzecki
2014-09-29 14:56   ` Burton, Ross
2014-09-29 17:14     ` Martin Jansa
2014-09-29 17:23       ` Burton, Ross
2014-09-29 18:48         ` Martin Jansa
2014-10-07 18:26           ` Khem Raj
2014-10-07 18:26 ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox