[oe-commits] Ross Burton : base.bbclass: add SRCREV to do_fetch() hash

git at git.openembedded.org git at git.openembedded.org
Tue Sep 30 13:11:05 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: a414b17e1d783ad68a2d0f7d5922967449c05797
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a414b17e1d783ad68a2d0f7d5922967449c05797

Author: Ross Burton <ross.burton at intel.com>
Date:   Mon Sep 29 15:40:14 2014 +0100

base.bbclass: add SRCREV to do_fetch() hash

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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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()



More information about the Openembedded-commits mailing list