[bitbake-devel] [PATCH 3/5] toaster: check for configuration file and exit if not found
Ed Bartosh
ed.bartosh at linux.intel.com
Wed Oct 7 12:17:34 UTC 2015
From: brian avery <avery.brian at gmail.com>
[YOCTO #8217]
Signed-off-by: brian avery <avery.brian at gmail.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
bin/toaster | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bin/toaster b/bin/toaster
index ff3123c..bfedfd3 100755
--- a/bin/toaster
+++ b/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 )
--
2.1.4
More information about the bitbake-devel
mailing list