[OE-core] [PATCH] base.bbclass: add SRCREV to do_fetch() hash

Khem Raj raj.khem at gmail.com
Tue Oct 7 18:26:41 UTC 2014


On Mon, Sep 29, 2014 at 7:40 AM, Ross Burton <ross.burton at intel.com> wrote:
> 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.
>

can we back port this to daisy as well.

> Signed-off-by: Ross Burton <ross.burton at 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
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list