Patchwork [01/13] toaster.bbclass: exclude variable dependency on toaster postfunc

login
register
mail settings
Submitter Alexandru DAMIAN
Date June 3, 2014, 3:16 p.m.
Message ID <1401808575-2417-1-git-send-email-alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/73139/
State New
Headers show

Comments

Alexandru DAMIAN - June 3, 2014, 3:16 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

This patch fixes an issue where the toaster postfuncs were
added to the task signature, making impossible the reuse
of sstate caches from builds outside toaster control.

Now the signatures do not differ between toaster and toaster-less
builds.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 meta/classes/toaster.bbclass | 2 ++
 1 file changed, 2 insertions(+)
Alexandru DAMIAN - June 3, 2014, 4:32 p.m.
There are no other patches in this series, it's the only patch.

I'm sorry about the misleading Subject line.

Cheers,
Alex


On Tue, Jun 3, 2014 at 4:16 PM, Alex DAMIAN <alexandru.damian@intel.com>
wrote:

> From: Alexandru DAMIAN <alexandru.damian@intel.com>
>
> This patch fixes an issue where the toaster postfuncs were
> added to the task signature, making impossible the reuse
> of sstate caches from builds outside toaster control.
>
> Now the signatures do not differ between toaster and toaster-less
> builds.
>
> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> ---
>  meta/classes/toaster.bbclass | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
> index 4244b2c..95499a5 100644
> --- a/meta/classes/toaster.bbclass
> +++ b/meta/classes/toaster.bbclass
> @@ -326,6 +326,8 @@ toaster_collect_task_stats[eventmask] =
> "bb.event.BuildCompleted bb.build.TaskSu
>  addhandler toaster_buildhistory_dump
>  toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
>  do_package[postfuncs] += "toaster_package_dumpdata "
> +do_package[vardepsexclude] += "toaster_package_dumpdata "
>
>  do_rootfs[postfuncs] += "toaster_image_dumpdata "
>  do_rootfs[postfuncs] += "toaster_licensemanifest_dump "
> +do_rootfs[vardepsexclude] += "toaster_image_dumpdata
> toaster_licensemanifest_dump"
> --
> 1.9.1
>
>

Patch

diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 4244b2c..95499a5 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -326,6 +326,8 @@  toaster_collect_task_stats[eventmask] = "bb.event.BuildCompleted bb.build.TaskSu
 addhandler toaster_buildhistory_dump
 toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
 do_package[postfuncs] += "toaster_package_dumpdata "
+do_package[vardepsexclude] += "toaster_package_dumpdata "
 
 do_rootfs[postfuncs] += "toaster_image_dumpdata "
 do_rootfs[postfuncs] += "toaster_licensemanifest_dump "
+do_rootfs[vardepsexclude] += "toaster_image_dumpdata toaster_licensemanifest_dump"