summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/toaster
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-03 16:26:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 10:32:54 +0100
commit05cf6fe0ff0932801e20a53e716b030f553bd9d5 (patch)
treed05bf15b9f4d2c630537f6de9a87ec4bda778f8b /bitbake/bin/toaster
parent89fe052949f7f6dbcca0ec69ff1a1c6735650f4b (diff)
downloadpoky-05cf6fe0ff0932801e20a53e716b030f553bd9d5.tar.gz
bitbake: toaster: startup script noweb mode
We add an option to the startup script, named "noweb" that will start toaster without the embedded web server. This is useful to start the system for build-only environments, where the web server code is running on a different machine. (Bitbake rev: c39838201301b9732581288a93783400bebe6591) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/toaster')
-rwxr-xr-xbitbake/bin/toaster6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index dea69a4652..f81e6672fb 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -146,11 +146,15 @@ else
146fi 146fi
147 147
148NOTOASTERUI=0 148NOTOASTERUI=0
149WEBSERVER=1
149for param in $*; do 150for param in $*; do
150 case $param in 151 case $param in
151 noui ) 152 noui )
152 NOTOASTERUI=1 153 NOTOASTERUI=1
153 ;; 154 ;;
155 noweb )
156 WEBSERVER=0
157 ;;
154 esac 158 esac
155done 159done
156 160
@@ -176,7 +180,7 @@ case $CMD in
176 start ) 180 start )
177 start_success=1 181 start_success=1
178 addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf 182 addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
179 if ! webserverStartAll; then 183 if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then
180 echo "Failed ${CMD}." 184 echo "Failed ${CMD}."
181 return 4 185 return 4
182 fi 186 fi