From a3871a37deafd0c2d2e563f36e0d570559483cd8 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 2 Dec 2015 10:02:39 -0800 Subject: bitbake: 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. (Bitbake rev: 124eb2bb15de18e4d2d6483c3549e1d887234736) Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 359b23d6a5..de03099a68 100755 --- a/bitbake/bin/toaster +++ b/bitbake/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 -- cgit v1.2.3-54-g00ecf