summaryrefslogtreecommitdiffstats
path: root/bin/toaster
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-12-02 10:02:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-07 17:22:59 +0000
commit124eb2bb15de18e4d2d6483c3549e1d887234736 (patch)
tree7fd2eed02a67c4f799682af1da97a6634eec0f5d /bin/toaster
parenta4f6809237dffb1abff78c6a8c82bcc4852aedfa (diff)
downloadbitbake-124eb2bb15de18e4d2d6483c3549e1d887234736.tar.gz
toaster: use parent of the build dir
Assigned TOASTER_DIR to the parent of the build directory. This should fix local controller crash as it assumes that TOASTER_DIR is a root of local poky and tries to clone it. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/toaster')
-rwxr-xr-xbin/toaster2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/toaster b/bin/toaster
index 359b23d6a..de03099a6 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -281,7 +281,7 @@ fi
# 4) pid's we need to clean up on exit/shutdown
# note: for future. in order to make this an arbitrary directory, we need to
# make sure that the toaster.sqlite file doesn't default to `pwd` like it currently does.
-export TOASTER_DIR=`pwd`
+export TOASTER_DIR=`dirname $BUILDDIR`
# Determine the action. If specified by arguments, fine, if not, toggle it
if [ "$1" = 'start' ] || [ "$1" = 'stop' ]; then