summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2018-11-02 02:40:15 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-07 23:08:55 +0000
commit1bdd416102aaf9093e64c6e4f1e762bb4b115a43 (patch)
tree8f4f98b6984107a963b9daa191b2af4e45906f5f /bitbake
parenta042179a784bab6a6f4bd5d63db80c1c02624b1c (diff)
downloadpoky-1bdd416102aaf9093e64c6e4f1e762bb4b115a43.tar.gz
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: <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. (Bitbake rev: 9cc6fe4be797e106899d2448797a4b3af8eace4e) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/toaster4
1 files changed, 3 insertions, 1 deletions
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
161 161
162export BBBASEDIR=`dirname $TOASTER`/.. 162export BBBASEDIR=`dirname $TOASTER`/..
163MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py" 163MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py"
164OE_ROOT=`dirname $TOASTER`/../.. 164if [ -z "$OE_ROOT" ]; then
165 OE_ROOT=`dirname $TOASTER`/../..
166fi
165 167
166# this is the configuraton file we are using for toaster 168# this is the configuraton file we are using for toaster
167# we are using the same logic that oe-setup-builddir uses 169# we are using the same logic that oe-setup-builddir uses