[bitbake-devel] [PATCH] bitbake: toaster: allow OE_ROOT to be provided through environment

Belal, Awais Awais_Belal at mentor.com
Thu Nov 1 13:36:43 UTC 2018


This should be applied to master as well as sumo.

BR,
Awais

________________________________________
From: bitbake-devel-bounces at lists.openembedded.org <bitbake-devel-bounces at lists.openembedded.org> on behalf of Belal, Awais
Sent: Thursday, November 1, 2018 6:34 PM
To: bitbake-devel at lists.openembedded.org
Subject: [bitbake-devel] [PATCH] 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: <repo-path>/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.

Signed-off-by: Awais Belal <awais_belal at mentor.com>
---
 bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/toaster b/bin/toaster
index 9fffbc6..4e227cc 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -161,7 +161,7 @@ fi

 export BBBASEDIR=`dirname $TOASTER`/..
 MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py"
-OE_ROOT=`dirname $TOASTER`/../..
+OE_ROOT=${OE_ROOT:-`dirname $TOASTER`/../..}

 # this is the configuraton file we are using for toaster
 # we are using the same logic that oe-setup-builddir uses
--
2.7.4

--
_______________________________________________
bitbake-devel mailing list
bitbake-devel at lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/bitbake-devel



More information about the bitbake-devel mailing list