]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: add SRCREV to do_fetch() hash
authorRoss Burton <ross.burton@intel.com>
Mon, 29 Sep 2014 14:40:14 +0000 (15:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Sep 2014 16:46:40 +0000 (17:46 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index c0d61fe7aa46b4d1f892f2f44c4e872cd31b45d4..ff8c63394f0a11129f2c842f9d7b4938f1a39cc5 100644 (file)
@@ -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()