[Toaster] [PATCH] bitbake: toaster: New build button allow arbitrary build targets
Michael Wood
michael.g.wood at intel.com
Fri Feb 6 11:22:49 PST 2015
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>
---
bitbake/lib/toaster/toastergui/static/js/base.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js
index 0302b80..777ab43 100644
--- a/bitbake/lib/toaster/toastergui/static/js/base.js
+++ b/bitbake/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);
--
2.1.0
More information about the toaster
mailing list