aboutsummaryrefslogtreecommitdiffstats
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)
downloadopenembedded-core-contrib-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
# toasterconf.json
if [ "$TOASTER_CONF" == "" ]; then
BIN_DIR=$(dirname "${BASH_SOURCE[0]}")
- export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
+ export TOASTER_CONF="$BIN_DIR/../../meta-yocto/conf/toasterconf.json"
+fi
+if [ ! -f $TOASTER_CONF ]; then
+ echo "$TOASTER_CONF configuration file not found, exiting..."
+ exit -1
fi
# this defines the dir toaster will use for
# 1) clones of layers (in _toaster_clones )