Skip to contentSkip to conversation

bitbake: toaster: New build button allow arbitrary build targets

PATCH In review Michael Wood 2 participants 2 messages Feb 6, 2015 – Feb 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toaster: New build button allow arbitrary build targets

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]

---
 bitbake/lib/toaster/toastergui/static/js/base.js | 2 ++
 1 file changed, 2 insertions(+)
bitbake/lib/toaster/toastergui/static/js/base.js +2 -0
index 0302b80..777ab43 100644
@@ -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);
Signature · 1 line
2.1.0
#1 lore raw

Taken for submission,

Thank you,
Alex

Quoted 35 lines · Michael Wood

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]

---
 bitbake/lib/toaster/toastergui/static/js/base.js | 2 ++
 1 file changed, 2 insertions(+)
bitbake/lib/toaster/toastergui/static/js/base.js +2 -0
index 0302b80..777ab43 100644
@@ -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

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC