From 26864d29ef5b0476cc458ff14b536ef526826573 Mon Sep 17 00:00:00 2001 From: Awais Belal Date: Fri, 2 Nov 2018 02:40:15 +0500 Subject: bitbake: bitbake: toaster: allow OE_ROOT to be provided through environment Updates for YOCTO #12891 allowed a user to have a directory structure different to that of yocto (bitbake isn't inside oe-core) whereas the definition of OE_ROOT in the main toaster binary still assumes the same while checking for .templateconf and hence we see an error on the cmdline in such cases: bash: /bitbake/bin/../../.templateconf: No such file or directory The change here now allows the user to provide OE_ROOT through the environment in such cases and otherwise defaults to the older mechanism to fix this issue. (Bitbake rev: 79d01b9fec99cec19156e0ebe05b4f2040bcef05) Signed-off-by: Awais Belal Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 9fffbc6ae2..ecf66fa51f 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -161,7 +161,9 @@ fi export BBBASEDIR=`dirname $TOASTER`/.. MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py" -OE_ROOT=`dirname $TOASTER`/../.. +if [ -z "$OE_ROOT" ]; then + OE_ROOT=`dirname $TOASTER`/../.. +fi # this is the configuraton file we are using for toaster # we are using the same logic that oe-setup-builddir uses -- cgit v1.2.3-54-g00ecf