summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorbrian avery <avery.brian@gmail.com>2015-10-07 15:17:34 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-11 05:33:05 +0100
commit7d7823e597138a57d3cf16f39dae95b23becf1e8 (patch)
treed5cc5a3c3c24bedfcc0b737bbd34c6c1c0f91809 /bitbake/bin
parent315989cd9539192acb76b1028b6a7f5c5f3b3395 (diff)
downloadpoky-7d7823e597138a57d3cf16f39dae95b23becf1e8.tar.gz
bitbake: toaster: check for configuration file and exit if not found
[YOCTO #8217] (Bitbake rev: 49e30c1aa8d717adbdcc15c90a668000789a6961) Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index ff3123cd4a..bfedfd3ea3 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -174,7 +174,11 @@ fi
174# toasterconf.json 174# toasterconf.json
175if [ "$TOASTER_CONF" == "" ]; then 175if [ "$TOASTER_CONF" == "" ]; then
176 BIN_DIR=$(dirname "${BASH_SOURCE[0]}") 176 BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
177 export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json" 177 export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
178fi
179if [ ! -f $TOASTER_CONF ]; then
180 echo "$TOASTER_CONF configuration file not found, exiting..."
181 exit -1
178fi 182fi
179# this defines the dir toaster will use for 183# this defines the dir toaster will use for
180# 1) clones of layers (in _toaster_clones ) 184# 1) clones of layers (in _toaster_clones )