[bitbake-devel] [PATCH 06/10] toaster: New build button allow arbitrary build targets

Alex DAMIAN alexandru.damian at intel.com
Mon Feb 16 17:53:22 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

Target input field needed to support both selecting suggestions and
typing targets, since Toaster doesn't always know about all the targets
provided by the layers in the project.

[YOCTO #7187]

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/toastergui/static/js/base.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js
index 0302b80..777ab43 100644
--- a/lib/toaster/toastergui/static/js/base.js
+++ b/lib/toaster/toastergui/static/js/base.js
@@ -88,6 +88,8 @@ function basePageInit (ctx) {
       if (!newBuildTargetInput.val())
         return;
 
+      if (!selectedTarget)
+        selectedTarget = { name: newBuildTargetInput.val() };
       /* fire and forget */
       libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
       window.location.replace(ctx.projectPageUrl+ctx.projectId);
-- 
1.9.1




More information about the bitbake-devel mailing list