1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

bitbake: toaster: trim build target input

Trim the entered built target value so that Toaster is not
confused with no real targets nor a ghost second target.

[YOCTO #11727]

(Bitbake rev: dd83c732b945ba6f9b7cdf66f6e88cfd15a745a0)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
David Reyna
2017-07-11 14:56:10 -07:00
committed by Richard Purdie
parent a25ece2d77
commit 882e85cd83
@@ -73,14 +73,14 @@ function projectTopBarInit(ctx) {
newBuildTargetBuildBtn.click(function (e) { newBuildTargetBuildBtn.click(function (e) {
e.preventDefault(); e.preventDefault();
if (!newBuildTargetInput.val()) { if (!newBuildTargetInput.val().trim()) {
return; return;
} }
/* We use the value of the input field so as to maintain any command also /* We use the value of the input field so as to maintain any command also
* added e.g. core-image-minimal:clean and because we can build targets * added e.g. core-image-minimal:clean and because we can build targets
* that toaster doesn't yet know about * that toaster doesn't yet know about
*/ */
selectedTarget = { name: newBuildTargetInput.val() }; selectedTarget = { name: newBuildTargetInput.val().trim() };
/* Fire off the build */ /* Fire off the build */
libtoaster.startABuild(null, selectedTarget.name, libtoaster.startABuild(null, selectedTarget.name,