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>
This commit is contained in:
brian avery 2015-10-07 15:17:34 +03:00 committed by Richard Purdie
parent 315989cd95
commit 7d7823e597
1 changed files with 5 additions and 1 deletions

View File

@ -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 )