[Toaster] [review-request][PATCH 1/2] bitbake: toaster: BuildButton target input allow building targets with tasks

Barros Pena, Belen belen.barros.pena at intel.com
Tue Mar 31 07:51:26 PDT 2015


On 27/03/2015 15:49, "Michael Wood" <michael.g.wood at intel.com> wrote:

>Allow the input for targets to contain tasks in the form target:task
>
>[YOCTO #7501]

This works great. 

Thanks!

Belén

>
>Signed-off-by: Michael Wood <michael.g.wood at intel.com>
>---
> bitbake/lib/toaster/toastergui/static/js/base.js | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js
>b/bitbake/lib/toaster/toastergui/static/js/base.js
>index 777ab43..f57e4d9 100644
>--- a/bitbake/lib/toaster/toastergui/static/js/base.js
>+++ b/bitbake/lib/toaster/toastergui/static/js/base.js
>@@ -88,10 +88,9 @@ function basePageInit (ctx) {
>       if (!newBuildTargetInput.val())
>         return;
> 
>-      if (!selectedTarget)
>-        selectedTarget = { name: newBuildTargetInput.val() };
>+      var selectedTargetName = newBuildTargetInput.val();
>       /* fire and forget */
>-      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId,
>selectedTarget.name, null, null);
>+      libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId,
>selectedTargetName, null, null);
>       window.location.replace(ctx.projectPageUrl+ctx.projectId);
>     });
> 
>-- 
>2.1.0
>
>-- 
>_______________________________________________
>toaster mailing list
>toaster at yoctoproject.org
>https://lists.yoctoproject.org/listinfo/toaster



More information about the toaster mailing list